[wp-trac] [WordPress Trac] #47321: Show different fatal error message when in Recovery Mode and unable to redirect

WordPress Trac noreply at wordpress.org
Mon Jun 10 15:16:42 UTC 2019


#47321: Show different fatal error message when in Recovery Mode and unable to
redirect
----------------------------------+------------------------
 Reporter:  TimothyBlynJacobs     |       Owner:  marybaum
     Type:  enhancement           |      Status:  reviewing
 Priority:  normal                |   Milestone:  5.2.2
Component:  Bootstrap/Load        |     Version:  5.2
 Severity:  normal                |  Resolution:
 Keywords:  has-patch servehappy  |     Focuses:
----------------------------------+------------------------

Comment (by TimothyBlynJacobs):

 Replying to [comment:16 SergeyBiryukov]:

 > > `if ( true === $handled ... )`
 >
 > Core does not generally use strict comparison in cases like this, `if (
 $handled ... )` should be enough.

 I don't think this will work in this case since a `WP_Error` object will
 be truthy. `$handled` is a `bool|WP_Error`.

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


More information about the wp-trac mailing list