Make WordPress Core


Ignore:
Timestamp:
12/15/2010 11:39:23 AM (14 years ago)
Author:
westi
Message:

Better message text to reflect that it might not just be an incorrect argument but maybe your calling something way too early. See #15824

File:
1 edited

Legend:

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

    r16941 r16942  
    44834483    if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
    44844484        if ( is_null( $version ) )
    4485             trigger_error( sprintf( __('%1$s was called with an argument that is <strong>incorrect</strong> - %2$s'), $function, $message ) );
     4485            trigger_error( sprintf( __('%1$s was called <strong>incorrectly</strong> - %2$s'), $function, $message ) );
    44864486        else
    4487             trigger_error( sprintf( __('%1$s was called with an argument that is <strong>incorrect</strong> since version %2$s - %3$s'), $function, $version, $message ) );
    4488     }
    4489 }
     4487            trigger_error( sprintf( __('%1$s was called in a way which has been <strong>incorrect</strong> since version %2$s - %3$s'), $function, $version, $message ) );
     4488    }
     4489}
Note: See TracChangeset for help on using the changeset viewer.