Make WordPress Core


Ignore:
Timestamp:
07/31/2016 06:24:21 PM (8 years ago)
Author:
ocean90
Message:

Script Loader: Ignore deregistered dependencies in wp_dependencies_unique_hosts().

Prevents a PHP warning when a handle of a deregistered dependency is still in the queue.

Fixes #37502.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r38161 r38174  
    28752875        if ( $dependencies instanceof WP_Dependencies && ! empty( $dependencies->queue ) ) {
    28762876            foreach ( $dependencies->queue as $handle ) {
     2877                if ( ! isset( $dependencies->registered[ $handle ] ) ) {
     2878                    continue;
     2879                }
     2880
    28772881                /* @var _WP_Dependency $dependency */
    28782882                $dependency = $dependencies->registered[ $handle ];
Note: See TracChangeset for help on using the changeset viewer.