Make WordPress Core

Changeset 60149


Ignore:
Timestamp:
04/10/2025 01:45:39 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct the type of the $return parameter in embed_handler_html filter.

The value cannot be false at this point, as the filter is only applied to non-empty embed HTML.

Follow-up to [25726], [46661].

Props apermo, jasonsa19.
Fixes #63248.

File:
1 edited

Legend:

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

    r60127 r60149  
    164164                                                 * @see WP_Embed::shortcode()
    165165                                                 *
    166                                                  * @param string|false $return The HTML result of the shortcode, or false on failure.
    167                                                  * @param string       $url    The embed URL.
    168                                                  * @param array        $attr   An array of shortcode attributes.
     166                                                 * @param string $return The HTML result of the shortcode.
     167                                                 * @param string $url    The embed URL.
     168                                                 * @param array  $attr   An array of shortcode attributes.
    169169                                                 */
    170170                                                return apply_filters( 'embed_handler_html', $return, $url, $attr );
Note: See TracChangeset for help on using the changeset viewer.