From 66f8496f687cf44b2f4a0c191e94d31cf8216ae2 Mon Sep 17 00:00:00 2001 From: Peter Westwood 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: https://develop.svn.wordpress.org/trunk@11170 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 53e2722f7f..80008cbcad 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 3063487597..e2b6ff93f8 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)); +} ?>