WordPress.org

Make WordPress Core

Ticket #23555: 23555.patch

File 23555.patch, 912 bytes (added by SergeyBiryukov, 14 months ago)
  • wp-includes/functions.php

     
    29802980        do_action( 'doing_it_wrong_run', $function, $message, $version ); 
    29812981 
    29822982        // Allow plugin to filter the output error trigger 
    2983         if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) { 
     2983        if ( WP_DEBUG && function_exists( '__' ) && apply_filters( 'doing_it_wrong_trigger_error', true ) ) { 
    29842984                $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version ); 
    29852985                $message .= ' ' . __( 'Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.' ); 
    29862986                trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );