[wp-trac] [WordPress Trac] #16092: add_permastruct() should allow more control over WP_Rewrite::generate_rewrite_rules()

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 24 18:27:20 UTC 2012


#16092: add_permastruct() should allow more control over
WP_Rewrite::generate_rewrite_rules()
---------------------------+------------------------------
 Reporter:  dnxpert        |       Owner:  John
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  3.0.4
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------------------

Comment (by duck_):

 In [19743]:
 {{{
 #!CommitTicketReference repository="" revision="19743"
 Upgrade add_permastruct() to allow more control over
 WP_Rewrite::generate_rewrite_rules(). See #16092.

 The third argument is now a configuration array that mirrors the
 parameters of generate_rewrite_rules()
 and allows for add_permastruct() specific args (i.e. with_front). The full
 configuration is stored in
 WP_Rewrite::$extra_permastructs to be used by WP_Rewrite::rewrite_rules().
 }}}

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


More information about the wp-trac mailing list