[wp-trac] [WordPress Trac] #51383: PHP error body class added for suppressed errors

WordPress Trac noreply at wordpress.org
Wed Sep 30 14:42:16 UTC 2020


#51383: PHP error body class added for suppressed errors
----------------------------+---------------------
 Reporter:  desrosj         |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  5.5.2
Component:  Administration  |     Version:  5.5
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+---------------------
Changes (by stoyangeorgiev):

 * keywords:  needs-patch => has-patch


Comment:

 Hello there, I have added the E_WARNING to the condition, and when the
 error is silenced, the empty space is not present however, if the error is
 not silenced part of the message appears under the menu. I will tweak it a
 bit more, but if anyone has another idea, I am open to suggestions. I have
 tried using,
 {{{
 ! in_array( $error_get_last['type'], array( E_NOTICE, E_WARNING )
 }}}

 , but the second condition causes the empty space to be present if the
 error is silenced elsewhere.

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


More information about the wp-trac mailing list