[wp-trac] [WordPress Trac] #16687: %postname% permalinks should not trigger verbose rewrite rules

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 27 14:14:15 UTC 2011


#16687: %postname% permalinks should not trigger verbose rewrite rules
-----------------------------+-----------------------------
 Reporter:  nacin            |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Rewrite Rules    |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+-----------------------------

Comment (by dd32):

 For /%postname%/ can we just not do if ( no slashes in the page query
 string ) then set `type = post||page` else set `type = page` (as a slash
 in the pagename, means' a hierarchical type, so not a post..)

 That'll probably require a extra check for is_page/etc conditionals to set
 it to the correct one..

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16687#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list