mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 03:04:34 +00:00
Properly check, initialize, or cast a number of variables. props ChenHui. see #14642.
git-svn-id: https://develop.svn.wordpress.org/trunk@16377 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -4232,7 +4232,7 @@ function get_file_data( $file, $default_headers, $context = '' ) {
|
||||
foreach( $extra_headers as $key=>$value ) {
|
||||
$extra_headers[$key] = $key;
|
||||
}
|
||||
$all_headers = array_merge($extra_headers, $default_headers);
|
||||
$all_headers = array_merge( $extra_headers, (array) $default_headers );
|
||||
} else {
|
||||
$all_headers = $default_headers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user