Make WordPress Core


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

    r34472 r34566  
    21882188 * @param string   $id       An internal ID/name for the handler. Needs to be unique.
    21892189 * @param string   $regex    The regex that will be used to see if this handler should be used for a URL.
    2190  * @param callback $callback The callback function that will be called if the regex is matched.
     2190 * @param callable $callback The callback function that will be called if the regex is matched.
    21912191 * @param int      $priority Optional. Used to specify the order in which the registered handlers will
    21922192 *                           be tested. Default 10.
     
    23742374     * @since 3.6.0
    23752375     *
    2376      * @param callback $handler Audio embed handler callback function.
     2376     * @param callable $handler Audio embed handler callback function.
    23772377     */
    23782378    wp_embed_register_handler( 'audio', '#^https?://.+?\.(' . join( '|', wp_get_audio_extensions() ) . ')$#i', apply_filters( 'wp_audio_embed_handler', 'wp_embed_handler_audio' ), 9999 );
     
    23832383     * @since 3.6.0
    23842384     *
    2385      * @param callback $handler Video embed handler callback function.
     2385     * @param callable $handler Video embed handler callback function.
    23862386     */
    23872387    wp_embed_register_handler( 'video', '#^https?://.+?\.(' . join( '|', wp_get_video_extensions() ) . ')$#i', apply_filters( 'wp_video_embed_handler', 'wp_embed_handler_video' ), 9999 );
Note: See TracChangeset for help on using the changeset viewer.