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

@@ -2080,7 +2080,7 @@ function attribute_escape( $text ) {
* @see wp_register_sidebar_widget()
*
* @param string|int $name Widget ID.
* @param callback $output_callback Run when widget is called.
* @param callable $output_callback Run when widget is called.
* @param string $classname Classname widget option.
* @param mixed $params ,... Widget parameters.
*/
@@ -2135,7 +2135,7 @@ function unregister_sidebar_widget($id) {
* @see wp_register_widget_control()
*
* @param int|string $name Sidebar ID.
* @param callback $control_callback Widget control callback to display and process form.
* @param callable $control_callback Widget control callback to display and process form.
* @param int $width Widget width.
* @param int $height Widget height.
*/
@@ -2928,9 +2928,9 @@ function clean_pre($matches) {
* @deprecated 3.4.0 Use add_theme_support()
* @see add_theme_support()
*
* @param callback $wp_head_callback Call on 'wp_head' action.
* @param callback $admin_head_callback Call on custom header administration screen.
* @param callback $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
* @param callable $wp_head_callback Call on 'wp_head' action.
* @param callable $admin_head_callback Call on custom header administration screen.
* @param callable $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
*/
function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) {
_deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-header\', $args )' );
@@ -2964,9 +2964,9 @@ function remove_custom_image_header() {
* @deprecated 3.4.0 Use add_theme_support()
* @see add_theme_support()
*
* @param callback $wp_head_callback Call on 'wp_head' action.
* @param callback $admin_head_callback Call on custom background administration screen.
* @param callback $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional.
* @param callable $wp_head_callback Call on 'wp_head' action.
* @param callable $admin_head_callback Call on custom background administration screen.
* @param callable $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional.
*/
function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) {
_deprecated_function( __FUNCTION__, '3.4', 'add_theme_support( \'custom-background\', $args )' );