From 0be40edabc52c405f9fed8e4bfa38b06cab2bc06 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Mon, 7 Jul 2014 07:07:17 +0000 Subject: [PATCH] Fix inconsistent language in two function descriptions in wp-includes/functions.php. Also adds correct coding standards to a code sample in `_deprecated_argument()`. Props TobiasBg. Fixes #26185. git-svn-id: https://develop.svn.wordpress.org/trunk@29013 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 6fdd49df97..030d1f56ad 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -3158,7 +3158,7 @@ function absint( $maybeint ) { } /** - * Mark a function as deprecated and informs when it has been used. + * Mark a function as deprecated and inform when it has been used. * * There is a hook deprecated_function_run that will be called that can be used * to get the backtrace up to what file and function called the deprecated @@ -3211,7 +3211,7 @@ function _deprecated_function( $function, $version, $replacement = null ) { } /** - * Marks a file as deprecated and inform when it has been used. + * Mark a file as deprecated and inform when it has been used. * * There is a hook deprecated_file_included that will be called that can be used * to get the backtrace up to what file and function included the deprecated @@ -3274,8 +3274,9 @@ function _deprecated_file( $file, $version, $replacement = null, $message = '' ) * used by comparing it to its default value or evaluating whether it is empty. * For example: * - * if ( !empty($deprecated) ) + * if ( ! empty( $deprecated ) ) { * _deprecated_argument( __FUNCTION__, '3.0' ); + * } * * * There is a hook deprecated_argument_run that will be called that can be used