WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/20/2016 10:10:01 PM (5 years ago)
Author:
ocean90
Message:

Script Loader: Fix missing script output when the groups of dependencies are different.

Aka: Don't lose the grandchild.

Props gitlost, ocean90.
Fixes #35873.

File:
1 edited

Legend:

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

    r36550 r36604  
    385385        $group = (int) $group;
    386386
    387         if ( $recursion )
    388             $group = min($this->group, $group);
    389         else
    390             $this->group = $group;
     387        if ( $recursion ) {
     388            $group = min( $this->group, $group );
     389        }
     390
     391        $this->group = $group;
    391392
    392393        if ( isset($this->groups[$handle]) && $this->groups[$handle] <= $group )
Note: See TracChangeset for help on using the changeset viewer.