WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/25/2015 11:57:46 PM (5 years ago)
Author:
johnbillion
Message:

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

Fixes #34032

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/deprecated.php

    r33969 r34566  
    20812081 *
    20822082 * @param string|int $name Widget ID.
    2083  * @param callback $output_callback Run when widget is called.
     2083 * @param callable $output_callback Run when widget is called.
    20842084 * @param string $classname Classname widget option.
    20852085 * @param mixed $params ,... Widget parameters.
     
    21362136 *
    21372137 * @param int|string $name Sidebar ID.
    2138  * @param callback $control_callback Widget control callback to display and process form.
     2138 * @param callable $control_callback Widget control callback to display and process form.
    21392139 * @param int $width Widget width.
    21402140 * @param int $height Widget height.
     
    29292929 * @see add_theme_support()
    29302930 *
    2931  * @param callback $wp_head_callback Call on 'wp_head' action.
    2932  * @param callback $admin_head_callback Call on custom header administration screen.
    2933  * @param callback $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
     2931 * @param callable $wp_head_callback Call on 'wp_head' action.
     2932 * @param callable $admin_head_callback Call on custom header administration screen.
     2933 * @param callable $admin_preview_callback Output a custom header image div on the custom header administration screen. Optional.
    29342934 */
    29352935function add_custom_image_header( $wp_head_callback, $admin_head_callback, $admin_preview_callback = '' ) {
     
    29652965 * @see add_theme_support()
    29662966 *
    2967  * @param callback $wp_head_callback Call on 'wp_head' action.
    2968  * @param callback $admin_head_callback Call on custom background administration screen.
    2969  * @param callback $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional.
     2967 * @param callable $wp_head_callback Call on 'wp_head' action.
     2968 * @param callable $admin_head_callback Call on custom background administration screen.
     2969 * @param callable $admin_preview_callback Output a custom background image div on the custom background administration screen. Optional.
    29702970 */
    29712971function add_custom_background( $wp_head_callback = '', $admin_head_callback = '', $admin_preview_callback = '' ) {
Note: See TracChangeset for help on using the changeset viewer.