diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
index 53a2204376..0bd0e07eb8 100644
|
a
|
b
|
function get_file_data( $file, $default_headers, $context = '' ) {
|
| 5107 | 5107 | } |
| 5108 | 5108 | |
| 5109 | 5109 | foreach ( $all_headers as $field => $regex ) { |
| 5110 | | if ( preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, $match ) && $match[1] ) { |
| | 5110 | if ( preg_match( '/^(?:[ \t]*<\?php)?[ \t\/*#@]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, $match ) && $match[1] ) { |
| 5111 | 5111 | $all_headers[ $field ] = _cleanup_header_comment( $match[1] ); |
| 5112 | 5112 | } else { |
| 5113 | 5113 | $all_headers[ $field ] = ''; |