mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Fix typo in _deprecated_argument() and start using _deprecated_argument() in wp-includes files. See #11386 props nacin.
git-svn-id: https://develop.svn.wordpress.org/trunk@12537 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3045,7 +3045,7 @@ function _deprecated_argument($function, $argument, $version, $message = null) {
|
||||
|
||||
// Allow plugin to filter the output error trigger
|
||||
if( WP_DEBUG && apply_filters( 'deprecated_argument_trigger_error', true ) ) {
|
||||
if( !is_null($replacement) )
|
||||
if( !is_null($message) )
|
||||
trigger_error( sprintf( __('The %1$s argument of %2$s is <strong>deprecated</strong> since version %3$s! %4$s'), $function, $argument, $version, $message ) );
|
||||
else
|
||||
trigger_error( sprintf( __('The %1$s argument of %2$s is <strong>deprecated</strong> since version %3$s with no alternative available.'), $function, $argument, $version ) );
|
||||
|
||||
Reference in New Issue
Block a user