[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
Sat Jan 28 21:01:01 UTC 2012


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

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [19779]:
 {{{
 #!CommitTicketReference repository="" revision="19779"
 Use new $args parameter for (WP_Rewrite::)add_permastruct(). Fixes #16092.

 Use array_intersect_key() to keep WP_Rewrite::$extra_permastructs free of
 unnecessary/unknown keys + values.
 }}}

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


More information about the wp-trac mailing list