Move _cleanup_header_comment() to wp-includes so it is always available. Fixes #8497 props Denis-de-Bernardy.

git-svn-id: https://develop.svn.wordpress.org/trunk@11170 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2009-05-04 09:33:58 +00:00
parent e4f47bc83f
commit 66f8496f68
2 changed files with 11 additions and 12 deletions

View File

@ -370,15 +370,4 @@ function wp_menu_unfold() {
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));
}
?>

View File

@ -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));
}
?>