関数 _cleanup_header_comment()
定義ファイル :/blog/wp-includes/functions.php 19
_cleanup_header_comment()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | /** * Strip close comment and close php tags from file headers used by WP. * * @since 2.8.0 * @access private * * @see http://core.trac.wordpress.org/ticket/8497 * * @param string $str Header comment to clean up. * @return string */ function _cleanup_header_comment( $str ) { return trim(preg_replace("/\s*(?:\*\/|\?>).*/", '', $str)); } |