[wp-trac] [WordPress Trac] #44142: Load Order: save_mod_rewrite_rules assumes wp-admin/includes/file.php is loaded

WordPress Trac noreply at wordpress.org
Sat Jun 16 13:12:00 UTC 2018


#44142: Load Order: save_mod_rewrite_rules assumes wp-admin/includes/file.php is
loaded
------------------------------+----------------------
 Reporter:  YuriV             |       Owner:  kraftbj
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.9.7
Component:  Bootstrap/Load    |     Version:  4.9.6
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+----------------------

Comment (by SergeyBiryukov):

 In [changeset:"43364" 43364]:
 {{{
 #!CommitTicketReference repository="" revision="43364"
 Privacy: Make sure `wp_add_privacy_policy_content()` does not cause a
 fatal error by unintentionally flushing rewrite rules outside of the admin
 context.

 Add a `_doing_it_wrong()` message describing the correct usage of the
 function.

 Props kraftbj, azaozz, SergeyBiryukov, YuriV.
 Merges [43361], [43362], [43363] to the 4.9 branch.
 Fixes #44142.
 }}}

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


More information about the wp-trac mailing list