WordPress.org

Make WordPress Core

Ticket #21520: 21520.patch

File 21520.patch, 636 bytes (added by azaozz, 9 years ago)
  • wp-includes/class.wp-dependencies.php

     
    245245
    246246        function __construct() {
    247247                @list($this->handle, $this->src, $this->deps, $this->ver, $this->args) = func_get_args();
    248                 if ( is_string( $this->deps ) && ! empty( $this->deps ) )
     248                if ( is_string( $this->deps ) && ! empty( $this->deps ) && $this->handle != $this->deps )
    249249                        $this->deps = array( $this->deps );
    250250                elseif ( !is_array( $this->deps ) )
    251251                        $this->deps = array();