callback is not a valid type in PHP, PSR-5, or phpDocumentor. callable should be used instead.

Fixes #34032


git-svn-id: https://develop.svn.wordpress.org/trunk@34566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2015-09-25 23:57:46 +00:00
parent ea23f4603c
commit 1bb2876fe6
19 changed files with 68 additions and 68 deletions

View File

@@ -1873,7 +1873,7 @@ function wp_upload_dir( $time = null ) {
*
* @param string $dir Directory.
* @param string $filename File name.
* @param callback $unique_filename_callback Callback. Default null.
* @param callable $unique_filename_callback Callback. Default null.
* @return string New filename, if given wasn't unique.
*/
function wp_unique_filename( $dir, $filename, $unique_filename_callback = null ) {
@@ -2395,7 +2395,7 @@ function wp_die( $message = '', $title = '', $args = array() ) {
*
* @since 3.4.0
*
* @param callback $function Callback function name.
* @param callable $function Callback function name.
*/
$function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' );
} elseif ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) {
@@ -2404,7 +2404,7 @@ function wp_die( $message = '', $title = '', $args = array() ) {
*
* @since 3.4.0
*
* @param callback $function Callback function name.
* @param callable $function Callback function name.
*/
$function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );
} else {
@@ -2413,7 +2413,7 @@ function wp_die( $message = '', $title = '', $args = array() ) {
*
* @since 3.0.0
*
* @param callback $function Callback function name.
* @param callable $function Callback function name.
*/
$function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );
}
@@ -4475,7 +4475,7 @@ function _wp_mysql_week( $column ) {
* @since 3.1.0
* @access private
*
* @param callback $callback Function that accepts ( ID, $callback_args ) and outputs parent_ID.
* @param callable $callback Function that accepts ( ID, $callback_args ) and outputs parent_ID.
* @param int $start The ID to start the loop check at.
* @param int $start_parent The parent_ID of $start to use instead of calling $callback( $start ).
* Use null to always use $callback
@@ -4500,7 +4500,7 @@ function wp_find_hierarchy_loop( $callback, $start, $start_parent, $callback_arg
* @since 3.1.0
* @access private
*
* @param callback $callback Function that accepts ( ID, callback_arg, ... ) and outputs parent_ID.
* @param callable $callback Function that accepts ( ID, callback_arg, ... ) and outputs parent_ID.
* @param int $start The ID to start the loop check at.
* @param array $override Optional. An array of ( ID => parent_ID, ... ) to use instead of $callback.
* Default empty array.