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

WordPress Trac noreply at wordpress.org
Thu Jan 26 00:46:30 UTC 2023


#51383: PHP error body class added for suppressed errors
-------------------------------------+-----------------------------
 Reporter:  desrosj                  |       Owner:  (none)
     Type:  defect (bug)             |      Status:  reviewing
 Priority:  normal                   |   Milestone:  Future Release
Component:  Administration           |     Version:  5.5
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------

Comment (by mcaskill):

 Example related to 51383.2.diff:

 {{{#!php
 <?php

 // Ignore suppressed deprecation notices.
 add_filter( 'pre_admin_php_error_class', function ( $print, $error ) {
         return ( $print && E_DEPRECATED !== $error['type'] )
 }, 10, 2 );
 }}}

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


More information about the wp-trac mailing list