[wp-trac] [WordPress Trac] #45989: WSODs protection still 500 on REST API request

WordPress Trac noreply at wordpress.org
Mon Jan 14 22:57:57 UTC 2019


#45989: WSODs protection still 500 on REST API request
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Bootstrap/Load                       |     Version:  trunk
 Severity:  major                                |  Resolution:
 Keywords:  needs-patch servehappy needs-        |     Focuses:  multisite
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 I think this is because the `WP_EXECUTION_SUCCEEDED` constant is defined
 at the end of `wp-settings.php`, but the REST API isn't initialized until
 after `wp()` is called which takes place in `wp-blog-header.php` after
 `wp-load.php` ( which includes `wp-settings.php` via `wp-config.php`.

 Maybe the constant should happen at the end of `wp-blog-header.php` for
 front-end requests and the same spot in `wp-settings.php` for all others?

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


More information about the wp-trac mailing list