From 465026255f7401028fbf3f3723739f6188ec4b5a Mon Sep 17 00:00:00 2001 From: westi 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: http://svn.automattic.com/wordpress/trunk@16942 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ) ); } }