Make WordPress Core


Ignore:
Timestamp:
09/25/2015 11:57:46 PM (11 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/functions.php

    r34512 r34566  
    18741874 * @param string   $dir                      Directory.
    18751875 * @param string   $filename                 File name.
    1876  * @param callback $unique_filename_callback Callback. Default null.
     1876 * @param callable $unique_filename_callback Callback. Default null.
    18771877 * @return string New filename, if given wasn't unique.
    18781878 */
     
    23962396         * @since 3.4.0
    23972397         *
    2398          * @param callback $function Callback function name.
     2398         * @param callable $function Callback function name.
    23992399         */
    24002400        $function = apply_filters( 'wp_die_ajax_handler', '_ajax_wp_die_handler' );
     
    24052405         * @since 3.4.0
    24062406         *
    2407          * @param callback $function Callback function name.
     2407         * @param callable $function Callback function name.
    24082408         */
    24092409        $function = apply_filters( 'wp_die_xmlrpc_handler', '_xmlrpc_wp_die_handler' );
     
    24142414         * @since 3.0.0
    24152415         *
    2416          * @param callback $function Callback function name.
     2416         * @param callable $function Callback function name.
    24172417         */
    24182418        $function = apply_filters( 'wp_die_handler', '_default_wp_die_handler' );
     
    44764476 * @access private
    44774477 *
    4478  * @param callback $callback      Function that accepts ( ID, $callback_args ) and outputs parent_ID.
     4478 * @param callable $callback      Function that accepts ( ID, $callback_args ) and outputs parent_ID.
    44794479 * @param int      $start         The ID to start the loop check at.
    44804480 * @param int      $start_parent  The parent_ID of $start to use instead of calling $callback( $start ).
     
    45014501 * @access private
    45024502 *
    4503  * @param callback $callback      Function that accepts ( ID, callback_arg, ... ) and outputs parent_ID.
     4503 * @param callable $callback      Function that accepts ( ID, callback_arg, ... ) and outputs parent_ID.
    45044504 * @param int      $start         The ID to start the loop check at.
    45054505 * @param array    $override      Optional. An array of ( ID => parent_ID, ... ) to use instead of $callback.
Note: See TracChangeset for help on using the changeset viewer.