Make WordPress Core

Changeset 60157 for branches/6.8


Ignore:
Timestamp:
04/14/2025 02:29:56 PM (16 months ago)
Author:
audrasjb
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].

Reviewed by SergeyBiryukov, audrasjb.
Merges [60149] to 6.8 branch.
Props apermo, jasonsa19.
Fixes #63248.

Location:
branches/6.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.8

  • branches/6.8/src/wp-includes/class-wp-embed.php

    r60140 r60157  
    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.