mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 14:14:36 +00:00
Docs: Further improve documentation of known return types, plus other docs fixes.
See #48303 git-svn-id: https://develop.svn.wordpress.org/trunk@46661 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -173,15 +173,15 @@ class WP_Embed {
|
||||
$return = call_user_func( $handler['callback'], $matches, $attr, $url, $rawattr );
|
||||
if ( false !== $return ) {
|
||||
/**
|
||||
* Filters the returned embed handler.
|
||||
* Filters the returned embed HTML.
|
||||
*
|
||||
* @since 2.9.0
|
||||
*
|
||||
* @see WP_Embed::shortcode()
|
||||
*
|
||||
* @param mixed $return The shortcode callback function to call.
|
||||
* @param string $url The attempted embed URL.
|
||||
* @param array $attr An array of shortcode attributes.
|
||||
* @param string|false $return The HTML result of the shortcode, or false on failure.
|
||||
* @param string $url The embed URL.
|
||||
* @param array $attr An array of shortcode attributes.
|
||||
*/
|
||||
return apply_filters( 'embed_handler_html', $return, $url, $attr );
|
||||
}
|
||||
@@ -248,10 +248,10 @@ class WP_Embed {
|
||||
*
|
||||
* @see WP_Embed::shortcode()
|
||||
*
|
||||
* @param mixed $cache The cached HTML result, stored in post meta.
|
||||
* @param string $url The attempted embed URL.
|
||||
* @param array $attr An array of shortcode attributes.
|
||||
* @param int $post_ID Post ID.
|
||||
* @param string|false $cache The cached HTML result, stored in post meta.
|
||||
* @param string $url The attempted embed URL.
|
||||
* @param array $attr An array of shortcode attributes.
|
||||
* @param int $post_ID Post ID.
|
||||
*/
|
||||
return apply_filters( 'embed_oembed_html', $cache, $url, $attr, $post_ID );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user