mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Support single line Template Name comment blocks for theme Templates and apply same cleanup to all header lines. Fixes #8497 props DD32 and Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11168 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -86,7 +86,7 @@ function get_plugin_data( $plugin_file, $markup = true, $translate = true ) {
|
||||
|
||||
foreach ( array( 'name', 'uri', 'version', 'description', 'author_name', 'author_uri', 'text_domain', 'domain_path' ) as $field ) {
|
||||
if ( !empty( ${$field} ) )
|
||||
${$field} = trim(${$field}[1]);
|
||||
${$field} = _cleanup_header_comment(${$field}[1]);
|
||||
else
|
||||
${$field} = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user