[wp-trac] [WordPress Trac] #39146: plugin.php gives error on do_all_hook() function

WordPress Trac noreply at wordpress.org
Wed Dec 7 21:27:03 UTC 2016


#39146: plugin.php gives error on do_all_hook() function
-------------------------------+------------------------------
 Reporter:  signcarver         |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Plugins            |     Version:  4.7
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by webmasteral):

 @jorbin
 I tried running
 {{{#!php
 <?php
 <?php
 set_error_handler( 'backtrace_error_handler', error_reporting() );
 function backtrace_error_handler( $errno, $errstr, $errfile, $errline,
 $errcontext ) {
         // handle @
         if( 0 === error_reporting() )
                 return false;
         $message = $errstr . ' in ' . $errfile . ' on line ' . $errline .
 ', backtrace: ' . wp_debug_backtrace_summary( null, 1 );
         if( WP_DEBUG_DISPLAY || ini_get( 'display_errors' ) )
                 echo '<br />' . $message . '<br />';
         if( WP_DEBUG_LOG || ini_get( 'log_errors' ) )
                 error_log( $message );
         return false;
 }
 }}}
 but the page loaded blank

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


More information about the wp-trac mailing list