Prevent PHP Warnings when using Custom Logo with no params
The parsing of defaults assumes that $args will be an array. This solves it for Custom Logo the same way it is solved for custom-header and custom-background. Props obenland. Fixes #36332. git-svn-id: https://develop.svn.wordpress.org/trunk@37092 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0a9951a3b9
commit
f531959fa2
@ -1560,6 +1560,9 @@ function add_theme_support( $feature ) {
|
||||
break;
|
||||
|
||||
case 'custom-logo':
|
||||
if ( ! is_array( $args ) ) {
|
||||
$args = array( 0 => array() );
|
||||
}
|
||||
$defaults = array(
|
||||
'width' => null,
|
||||
'height' => null,
|
||||
|
Loading…
Reference in New Issue
Block a user