From cce77d198a19ea7249299135112568125f0ce119 Mon Sep 17 00:00:00 2001 From: westi Date: Mon, 4 May 2009 09:33:58 +0000 Subject: [PATCH] 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 --- wp-admin/includes/misc.php | 13 +------------ wp-includes/functions.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index 53e2722f7..80008cbca 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -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)); -} - +?> \ No newline at end of file diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 306348759..e2b6ff93f 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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)); +} ?>