Make WordPress Core


Ignore:
Timestamp:
08/03/2011 01:54:29 AM (13 years ago)
Author:
azaozz
Message:

Optimize script-loader a bit, see #11520

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class.wp-scripts.php

    r18480 r18496  
    174174
    175175    function set_group( $handle, $recursion, $group = false ) {
    176         $grp = (int) $this->get_data( $handle, 'group' );
     176
     177        if ( $this->registered[$handle]->args === 1 )
     178            $grp = 1;
     179        else
     180            $grp = (int) $this->get_data( $handle, 'group' );
    177181
    178182        if ( false !== $group && $grp > $group )
Note: See TracChangeset for help on using the changeset viewer.