[wp-trac] [WordPress Trac] #7337: Consistently use $wp_rewrite->index instead of hardcoding "index.php"
WordPress Trac
noreply at wordpress.org
Wed Jan 23 00:30:06 UTC 2013
#7337: Consistently use $wp_rewrite->index instead of hardcoding "index.php"
--------------------------+---------------------
Reporter: markjaquith | Owner: ryan
Type: defect (bug) | Status: closed
Priority: low | Milestone: 3.6
Component: Permalinks | Version: 2.6
Severity: minor | Resolution: fixed
Keywords: has-patch |
--------------------------+---------------------
Comment (by Viper007Bond):
Why not have a helper function that returns this value so that the
`$wp_rewrite` global isn't needed? Much less prone to issues and doesn't
require using `global`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7337#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list