WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/15/2019 11:26:16 AM (2 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-manager.php

    r45932 r46133  
    12301230                    if ( count( $widget_numbers ) > 0 ) {
    12311231                        $widget_numbers[]               = 1;
    1232                         $max_widget_numbers[ $id_base ] = call_user_func_array( 'max', $widget_numbers );
     1232                        $max_widget_numbers[ $id_base ] = max( ...$widget_numbers );
    12331233                    } else {
    12341234                        $max_widget_numbers[ $id_base ] = 1;
Note: See TracChangeset for help on using the changeset viewer.