[wp-trac] [WordPress Trac] #37892: Make sure rewrite rules are written once 'wp_loaded' is fired

WordPress Trac noreply at wordpress.org
Fri Oct 7 19:43:58 UTC 2016


#37892: Make sure rewrite rules are written once 'wp_loaded' is fired
---------------------------+-----------------------------
 Reporter:  Chouby         |       Owner:  SergeyBiryukov
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  4.7
Component:  Rewrite Rules  |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------
Changes (by jorbin):

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


Comment:

 In [changeset:"38751"]:
 {{{
 #!CommitTicketReference repository="" revision="38751"
 Make sure rewrite rules are not written until `wp_loaded` has fired

 If a plugin attempts to change the rewrite rules to early, other plugins
 may have their rules inadvertently discarded. Additionally, some function
 such as `url_to_post_id` cause a rewrite rule lookup that could cause this
 accidental flushing. This forces the flushing to only occur once
 `wp_loaded` has been fired.

 Fixes #37892.
 Props Chouby.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37892#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list