Skip to content

Commit 17f8ee4

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@60149 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 45cf478 commit 17f8ee4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wp-includes/class-wp-embed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ public function get_embed_handler_html( $attr, $url ) {
163163
*
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 );
171171
}

0 commit comments

Comments
 (0)