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: https://develop.svn.wordpress.org/trunk@17516 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f490877ab4
commit
d79937e6a3
@ -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…
Reference in New Issue
Block a user