Move _cleanup_header_comment() to wp-includes so it is always available. Fixes #8497 props Denis-de-Bernardy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
96eb01c3ac
commit
cce77d198a
|
@ -370,15 +370,4 @@ function wp_menu_unfold() {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
/**
|
|
||||||
* Strip close comment and close php tags from file headers used by WP
|
|
||||||
* See http://core.trac.wordpress.org/ticket/8497
|
|
||||||
*
|
|
||||||
* @since 2.8
|
|
||||||
**/
|
|
||||||
function _cleanup_header_comment($str) {
|
|
||||||
return trim(preg_replace("/\s*(?:\*\/|\?>).*/", '', $str));
|
|
||||||
}
|
|
||||||
|
|
|
@ -3147,4 +3147,14 @@ function wp_timezone_choice($selectedzone) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Strip close comment and close php tags from file headers used by WP
|
||||||
|
* See http://core.trac.wordpress.org/ticket/8497
|
||||||
|
*
|
||||||
|
* @since 2.8
|
||||||
|
**/
|
||||||
|
function _cleanup_header_comment($str) {
|
||||||
|
return trim(preg_replace("/\s*(?:\*\/|\?>).*/", '', $str));
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue