WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #14142, comment 8


Ignore:
Timestamp:
12/01/2016 04:28:47 PM (3 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14142, comment 8

    initial v1  
    88- $walker = ( empty($r->walker) ) ? new Walker_Nav_Menu : $r->walker;
    99+ $walker = $r->walker;
    10 + if ( is_string( $r->walker ) ) {
     10+ if ( ! empty( $r->walker ) && is_string( $r->walker ) ) {
    1111+     $walker = new $walker;
    1212+ }