mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Improve various @param docs for src/wp-includes/*.
See #30224. git-svn-id: https://develop.svn.wordpress.org/trunk@30681 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -270,7 +270,7 @@ class WP_oEmbed {
|
||||
*
|
||||
* @param string $url The URL to the content that should be attempted to be embedded.
|
||||
* @param array $args Optional arguments. Usually passed from a shortcode.
|
||||
* @return bool|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
|
||||
* @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
|
||||
*/
|
||||
function get_html( $url, $args = '' ) {
|
||||
$provider = $this->get_provider( $url, $args );
|
||||
@@ -496,7 +496,7 @@ class WP_oEmbed {
|
||||
*
|
||||
* @param object $data A data object result from an oEmbed provider.
|
||||
* @param string $url The URL to the content that is desired to be embedded.
|
||||
* @return bool|string False on error, otherwise the HTML needed to embed.
|
||||
* @return false|string False on error, otherwise the HTML needed to embed.
|
||||
*/
|
||||
public function data2html( $data, $url ) {
|
||||
if ( ! is_object( $data ) || empty( $data->type ) )
|
||||
|
||||
Reference in New Issue
Block a user