mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Code Modernisation: Replace call_user_func_array() in wp-includes/class-wp-customize-*.php with direct function calls in combination with the spread operator.
Props jrf. See #47678. git-svn-id: https://develop.svn.wordpress.org/trunk@46133 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1050,7 +1050,7 @@ final class WP_Customize_Widgets {
|
||||
$args[0]['before_widget_content'] = '<div class="widget-content">';
|
||||
$args[0]['after_widget_content'] = '</div><!-- .widget-content -->';
|
||||
ob_start();
|
||||
call_user_func_array( 'wp_widget_control', $args );
|
||||
wp_widget_control( ...$args );
|
||||
$control_tpl = ob_get_clean();
|
||||
return $control_tpl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user