diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 2885fd4dc9..f4dfaeedc2 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -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,