[wp-trac] [WordPress Trac] #16725: Inconsistent leading slash in WP_Rewrite

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 2 17:25:58 UTC 2011

#16725: Inconsistent leading slash in WP_Rewrite
 Reporter:  scribu         |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Future Release
Component:  Rewrite Rules  |    Version:
 Severity:  normal         |   Keywords:  needs-patch
 #16626 revealed an inconsistency in WP_Rewrite, where
 {{{$wp_rewrite->front}}} has a leading slash, but the final rules array

 This is caused by the fact that {{{$wp_rewrite->permalink_structure}}}
 itself has a leading slash.

 Also note that {{{$wp_rewrite->search_structure}}} stands out as the only
 structure that doesn't have a leading slash.

 This should be made consistent somehow.

Ticket URL: <http://core.trac.wordpress.org/ticket/16725>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list