WordPress.org

Make WordPress Core

Changeset 29253


Ignore:
Timestamp:
07/20/2014 12:33:51 AM (4 years ago)
Author:
wonderboymusic
Message:

WP_Dependencies->recurse_deps(): tuck the recursion into elseif so the foreach doesn't break on the first item.

See [29252].

File:
1 edited

Legend:

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

    r29252 r29253  
    342342            if ( in_array( $handle, $this->registered[ $queued ]->deps ) ) {
    343343                return true;
    344             } else {
    345                 return $this->recurse_deps( $this->registered[ $queued ]->deps, $handle );
     344            } elseif ( $this->recurse_deps( $this->registered[ $queued ]->deps, $handle ) ) {
     345                return true;
    346346            }
    347347        }
Note: See TracChangeset for help on using the changeset viewer.