[wp-trac] [WordPress Trac] #37561: Inserting rewrite rules using the filter 'option_rewrite_rules' breaks 'WP_Rewrite::flush_rules()', causing 404 errors

WordPress Trac noreply at wordpress.org
Wed Aug 10 21:42:26 UTC 2016


#37561: Inserting rewrite rules using the filter 'option_rewrite_rules' breaks
'WP_Rewrite::flush_rules()', causing 404 errors
---------------------------+------------------------------
 Reporter:  maratbn        |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  close          |     Focuses:
---------------------------+------------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:4 maratbn]:
 > b/c the Jupiter theme is flushing rewrite rules inside page requests

 That sounds like a bad practice the
 [https://codex.wordpress.org/flush_rewrite_rules#Usage Codex specifically
 warns against].

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


More information about the wp-trac mailing list