From acb3938c8ae1e1f2256481644549772770048e37 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 9 Mar 2011 05:46:58 +0000 Subject: [PATCH] Make plugin header parsing slightly more liberal (like it was in 3.0), to allow for PHPdoc style headers. props miqrogroove. fixes #16751 for trunk git-svn-id: http://svn.automattic.com/wordpress/trunk@17516 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 65ee33eaf..72843130a 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -4302,7 +4302,7 @@ function get_file_data( $file, $default_headers, $context = '' ) { } foreach ( $all_headers as $field => $regex ) { - preg_match( '/^[ \t\/*#]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, ${$field}); + preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, ${$field}); if ( !empty( ${$field} ) ) ${$field} = _cleanup_header_comment( ${$field}[1] ); else