From a95a5b65cce35ebc11139911c3b118274e59fa5d Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 15 Dec 2010 11:39:23 +0000 Subject: [PATCH] Better message text to reflect that it might not just be an incorrect argument but maybe your calling something way too early. See #15824 git-svn-id: https://develop.svn.wordpress.org/trunk@16942 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index bd90170782..3b75161559 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -4482,8 +4482,8 @@ function _doing_it_wrong( $function, $message, $version = null ) { // Allow plugin to filter the output error trigger if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) { if ( is_null( $version ) ) - trigger_error( sprintf( __('%1$s was called with an argument that is incorrect - %2$s'), $function, $message ) ); + trigger_error( sprintf( __('%1$s was called incorrectly - %2$s'), $function, $message ) ); else - trigger_error( sprintf( __('%1$s was called with an argument that is incorrect since version %2$s - %3$s'), $function, $version, $message ) ); + trigger_error( sprintf( __('%1$s was called in a way which has been incorrect since version %2$s - %3$s'), $function, $version, $message ) ); } }