Make WordPress Core


Ignore:
Timestamp:
09/15/2019 11:26:16 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-widgets.php

    r45932 r46133  
    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;
Note: See TracChangeset for help on using the changeset viewer.