WordPress.org

Make WordPress Core

Ticket #20683: 20683.3.diff

File 20683.3.diff, 698 bytes (added by ryan, 6 years ago)

Revert

  • wp-includes/class.wp-dependencies.php

     
    247247        var $extra = array();
    248248
    249249        function __construct() {
    250                 @list($this->handle, $this->src, $this->deps, $this->ver, $this->args) = func_get_args();
    251                 if ( is_string( $this->deps ) && ! empty( $this->deps ) )
    252                         $this->deps = array( $this->deps );
    253                 elseif ( !is_array( $this->deps ) )
     250                @list( $this->handle, $this->src, $this->deps, $this->ver, $this->args ) = func_get_args();
     251                if ( ! is_array($this->deps) )
    254252                        $this->deps = array();
    255253        }
    256254