Make WordPress Core

Changeset 19044


Ignore:
Timestamp:
10/23/2011 05:51:14 PM (13 years ago)
Author:
nacin
Message:

In _doing_it_wrong(), don't append the Debugging_in_WordPress message until we go to print a message. Send a clean message to the action. see #18453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r19039 r19044  
    35313531function _doing_it_wrong( $function, $message, $version ) {
    35323532
    3533     $message .= ' ' . __('Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.');
    35343533    do_action( 'doing_it_wrong_run', $function, $message, $version );
    35353534
     
    35373536    if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
    35383537        $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version );
     3538        $message .= ' ' . __( 'Please see <a href="http://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.' );
    35393539        trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
    35403540    }
Note: See TracChangeset for help on using the changeset viewer.