[wp-trac] [WordPress Trac] #47479: Do not return 5xx for invalid/expired recovery mode cookies

WordPress Trac noreply at wordpress.org
Tue Jun 4 23:54:36 UTC 2019


#47479: Do not return 5xx for invalid/expired recovery mode cookies
------------------------------------+------------------------------
 Reporter:  david.binda             |       Owner:  spacedmonkey
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Bootstrap/Load          |     Version:  5.2
 Severity:  normal                  |  Resolution:
 Keywords:  needs-patch servehappy  |     Focuses:
------------------------------------+------------------------------

Comment (by spacedmonkey):

 @davidbinda This looks good.

 For calls to `wp_die` that pass a `WP_Error` object. Please add the status
 code like
 [https://github.com/WordPress/WordPress/blob/131440c1a5f0e1e2273f7c2fff2533b94c77c30d
 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php#L545
 this].

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


More information about the wp-trac mailing list