mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
Code Modernisation: Fix known instances of array access on data types that can't be accessed as arrays.
PHP 7.4 addes a warning when trying access a null/bool/int/float/resource (everything but array, string and object) as if it were an array. This change fixes all of these warnings visible in unit tests. Props jrf. See #47704. git-svn-id: https://develop.svn.wordpress.org/trunk@45639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5098,10 +5098,10 @@ final class WP_Customize_Manager {
|
||||
'label' => __( 'Logo' ),
|
||||
'section' => 'title_tagline',
|
||||
'priority' => 8,
|
||||
'height' => $custom_logo_args[0]['height'],
|
||||
'width' => $custom_logo_args[0]['width'],
|
||||
'flex_height' => $custom_logo_args[0]['flex-height'],
|
||||
'flex_width' => $custom_logo_args[0]['flex-width'],
|
||||
'height' => isset( $custom_logo_args[0]['height'] ) ? $custom_logo_args[0]['height'] : null,
|
||||
'width' => isset( $custom_logo_args[0]['width'] ) ? $custom_logo_args[0]['width'] : null,
|
||||
'flex_height' => isset( $custom_logo_args[0]['flex-height'] ) ? $custom_logo_args[0]['flex-height'] : null,
|
||||
'flex_width' => isset( $custom_logo_args[0]['flex-width'] ) ? $custom_logo_args[0]['flex-width'] : null,
|
||||
'button_labels' => array(
|
||||
'select' => __( 'Select logo' ),
|
||||
'change' => __( 'Change logo' ),
|
||||
|
||||
Reference in New Issue
Block a user