[wp-trac] [WordPress Trac] #7337: Consistently use $wp_rewrite->index instead of hardcoding "index.php"
WordPress Trac
noreply at wordpress.org
Fri Jan 18 18:45:11 UTC 2013
#7337: Consistently use $wp_rewrite->index instead of hardcoding "index.php"
--------------------------+-----------------------
Reporter: markjaquith | Owner: ryan
Type: defect (bug) | Status: reopened
Priority: low | Milestone: 3.6
Component: Permalinks | Version: 2.6
Severity: minor | Resolution:
Keywords: has-patch |
--------------------------+-----------------------
Changes (by andrewryno):
* status: closed => reopened
* resolution: fixed =>
Comment:
This breaks _wp_menu_item_classes_by_context() in nav-menu-template.php.
Notice: Undefined variable: wp_rewrite in wp-includes/nav-menu-
template.php on line 370
Notice: Trying to get property of non-object in wp-includes/nav-menu-
template.php on line 370
Need $wp_rewrite to be global for it to work.
Not sure if it breaks other places, but this is the only one I've seen.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7337#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list