[wp-trac] [WordPress Trac] #44142: 500 error after update

WordPress Trac noreply at wordpress.org
Fri May 18 17:48:54 UTC 2018


#44142: 500 error after update
----------------------------+-----------------------
 Reporter:  YuriV           |       Owner:  kraftbj
     Type:  defect (bug)    |      Status:  assigned
 Priority:  normal          |   Milestone:  4.9.7
Component:  Bootstrap/Load  |     Version:  4.9.6
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+-----------------------
Changes (by kraftbj):

 * owner:  (none) => kraftbj
 * status:  new => assigned
 * component:  General => Bootstrap/Load
 * milestone:  Awaiting Review => 4.9.7


Comment:

 @SergeyBiryukov identified the exact path for this particular error, which
 is caused by `wp-admin/includes/misc.php` being loaded via
 `wp_add_privacy_policy_content()` when an rewrite flush is requested
 outside of the admin context. That combo leads to `save_mod_rewrite_rules`
 `function_exists` check to pass. That function assumes `wp-
 admin/includes/file.php` has been loaded, which isn't true in this case.

 Patch incoming.

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


More information about the wp-trac mailing list