Make WordPress Core

Ticket #47704: 47704-WP_Customize_Manager-regist.patch

File 47704-WP_Customize_Manager-regist.patch, 1.6 KB (added by jrf, 6 years ago)

PHP 7.4/array-access: Fix WP_Customize_Manager::register_controls() - fixes 12 errors

  • src/wp-includes/class-wp-customize-manager.php

    From e46c226ed570206581cebed5f526f6b786cb360f Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Mon, 15 Jul 2019 03:11:12 +0200
    Subject: [PATCH] PHP 7.4/array-access: Fix
     WP_Customize_Manager::register_controls()
    
    ---
     src/wp-includes/class-wp-customize-manager.php | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php
    index 4d7bf3ba44..be369a1cb3 100644
    a b final class WP_Customize_Manager { 
    50985098                                        'label'         => __( 'Logo' ),
    50995099                                        'section'       => 'title_tagline',
    51005100                                        'priority'      => 8,
    5101                                         'height'        => $custom_logo_args[0]['height'],
    5102                                         'width'         => $custom_logo_args[0]['width'],
    5103                                         'flex_height'   => $custom_logo_args[0]['flex-height'],
    5104                                         'flex_width'    => $custom_logo_args[0]['flex-width'],
     5101                                        'height'        => isset( $custom_logo_args[0]['height'] ) ? $custom_logo_args[0]['height'] : null,
     5102                                        'width'         => isset( $custom_logo_args[0]['width'] ) ? $custom_logo_args[0]['width'] : null,
     5103                                        'flex_height'   => isset( $custom_logo_args[0]['flex-height'] ) ? $custom_logo_args[0]['flex-height'] : null,
     5104                                        'flex_width'    => isset( $custom_logo_args[0]['flex-width'] ) ? $custom_logo_args[0]['flex-width'] : null,
    51055105                                        'button_labels' => array(
    51065106                                                'select'       => __( 'Select logo' ),
    51075107                                                'change'       => __( 'Change logo' ),