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 { |
| 1050 | 1050 | $args[0]['before_widget_content'] = '<div class="widget-content">'; |
| 1051 | 1051 | $args[0]['after_widget_content'] = '</div><!-- .widget-content -->'; |
| 1052 | 1052 | ob_start(); |
| 1053 | | call_user_func_array( 'wp_widget_control', $args ); |
| | 1053 | wp_widget_control( ...$args ); |
| 1054 | 1054 | $control_tpl = ob_get_clean(); |
| 1055 | 1055 | return $control_tpl; |
| 1056 | 1056 | } |