[wp-trac] [WordPress Trac] #55489: Defining SHORTINIT creates an error when index.php is loaded (was: SHORTINIT define make error in the core)

WordPress Trac noreply at wordpress.org
Wed Mar 30 17:48:25 UTC 2022


#55489: Defining SHORTINIT creates an error when index.php is loaded
-----------------------------------+------------------------------
 Reporter:  gerendo                |       Owner:  (none)
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Bootstrap/Load         |     Version:  5.9.2
 Severity:  normal                 |  Resolution:
 Keywords:  has-screenshots close  |     Focuses:  rest-api
-----------------------------------+------------------------------
Changes (by TimothyBlynJacobs):

 * keywords:  has-screenshots => has-screenshots close
 * severity:  critical => normal


Comment:

 `SHORTINIT` doesn't load the majority of WordPress, you can see where it
 [https://github.com/WordPress/wordpress-
 develop/blob/bcb3299a37712b61eb9b2a92c0b2fcc81e5d3d9d/src/wp-
 settings.php#L149 stops loading in `wp-settings.php`]. This includes the
 REST API.

 It looks like you are defining `SHORTINIT` for all requests to WordPress,
 which is not a supported configuration.

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


More information about the wp-trac mailing list