Plugin Directory

Changeset 427749


Ignore:
Timestamp:
08/23/2011 06:43:35 PM (15 years ago)
Author:
ainth
Message:

If the wp_nav function returns false, sets raw data to empty array to reduce # of errors. Still throws notice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • navigable/trunk/class-wp-nav.php

    r427743 r427749  
    2020      trigger_error("Navigable could not find the navigation object called '{$nav_selector}'", E_USER_NOTICE);
    2121    }
    22 
     22    $this-> raw = $this->raw === false ? array() : $this-> raw;
    2323        $this->page_slugs = $this->get_page_slugs();
    2424        parent::__construct();
Note: See TracChangeset for help on using the changeset viewer.