WordPress.org

Make WordPress Core

Ticket #47678: 47678-WP_Customize_Widgets-get_widget_control.patch

File 47678-WP_Customize_Widgets-get_widget_control.patch, 971 bytes (added by jrf, 12 months ago)

Simplify WP_Customize_Widgets::get_widget_control()

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

    From fcf430ad5070499faed48c0421ba4c62520bc33b Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Sat, 20 Jul 2019 06:47:21 +0200
    Subject: [PATCH] Simplify WP_Customize_Widgets::get_widget_control()
    
    ---
     src/wp-includes/class-wp-customize-widgets.php | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/wp-includes/class-wp-customize-widgets.php b/src/wp-includes/class-wp-customize-widgets.php
    index fde21eabdb..2295d817c0 100644
    a b final class WP_Customize_Widgets { 
    10501050                $args[0]['before_widget_content'] = '<div class="widget-content">';
    10511051                $args[0]['after_widget_content']  = '</div><!-- .widget-content -->';
    10521052                ob_start();
    1053                 call_user_func_array( 'wp_widget_control', $args );
     1053                wp_widget_control( ...$args );
    10541054                $control_tpl = ob_get_clean();
    10551055                return $control_tpl;
    10561056        }