mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-26 22:32:52 +02:00
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. Built from https://develop.svn.wordpress.org/trunk@29013 git-svn-id: http://core.svn.wordpress.org/trunk@28801 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b8750d5bb6
commit
f5b5b89e66
@ -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
|
* 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
|
* 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
|
* 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
|
* 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.
|
* used by comparing it to its default value or evaluating whether it is empty.
|
||||||
* For example:
|
* For example:
|
||||||
* <code>
|
* <code>
|
||||||
* if ( !empty($deprecated) )
|
* if ( ! empty( $deprecated ) ) {
|
||||||
* _deprecated_argument( __FUNCTION__, '3.0' );
|
* _deprecated_argument( __FUNCTION__, '3.0' );
|
||||||
|
* }
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* There is a hook deprecated_argument_run that will be called that can be used
|
* There is a hook deprecated_argument_run that will be called that can be used
|
||||||
|
Loading…
Reference in New Issue
Block a user