mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Script Loader: Fix missing script output when the groups of dependencies are different.
Aka: Don't lose the grandchild. Props gitlost, ocean90. Fixes #35873. Built from https://develop.svn.wordpress.org/trunk@36604 git-svn-id: http://core.svn.wordpress.org/trunk@36571 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a40a04ef42
commit
826e2d8ea1
@ -384,10 +384,11 @@ class WP_Dependencies {
|
||||
public function set_group( $handle, $recursion, $group ) {
|
||||
$group = (int) $group;
|
||||
|
||||
if ( $recursion )
|
||||
$group = min($this->group, $group);
|
||||
else
|
||||
$this->group = $group;
|
||||
if ( $recursion ) {
|
||||
$group = min( $this->group, $group );
|
||||
}
|
||||
|
||||
$this->group = $group;
|
||||
|
||||
if ( isset($this->groups[$handle]) && $this->groups[$handle] <= $group )
|
||||
return false;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.5-alpha-36603';
|
||||
$wp_version = '4.5-alpha-36604';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user