Make WordPress Core


Ignore:
Timestamp:
08/08/2012 05:21:24 PM (12 years ago)
Author:
azaozz
Message:

When WP_Dependencies accept a string for a single dependency, make sure the string is not empty, see #20683

File:
1 edited

Legend:

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

    r21420 r21481  
    246246    function __construct() {
    247247        @list($this->handle, $this->src, $this->deps, $this->ver, $this->args) = func_get_args();
    248         if ( is_string( $this->deps ) )
     248        if ( is_string( $this->deps ) && ! empty( $this->deps ) )
    249249            $this->deps = array( $this->deps );
    250250        elseif ( !is_array( $this->deps ) )
Note: See TracChangeset for help on using the changeset viewer.