mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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
This commit is contained in:
parent
1a7a1d9986
commit
acb3938c8a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user