Docs: Properly mark $args
parameters in two WP_oEmbed
methods as optional.
Also clarify that the `$args` parameters can accept a string (the default) in addition to an array. Props ramiy. See #36296. git-svn-id: https://develop.svn.wordpress.org/trunk@37069 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
79150b2561
commit
979d8931d3
@ -311,7 +311,7 @@ class WP_oEmbed {
|
||||
* @access public
|
||||
*
|
||||
* @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.
|
||||
* @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty.
|
||||
* @return false|string False on failure, otherwise the UNSANITIZED (and potentially unsafe) HTML that should be used to embed.
|
||||
*/
|
||||
public function get_html( $url, $args = '' ) {
|
||||
@ -424,7 +424,7 @@ class WP_oEmbed {
|
||||
*
|
||||
* @param string $provider The URL to the oEmbed provider.
|
||||
* @param string $url The URL to the content that is desired to be embedded.
|
||||
* @param array $args Optional arguments. Usually passed from a shortcode.
|
||||
* @param array|string $args Optional. Arguments, usually passed from a shortcode. Default empty.
|
||||
* @return false|object False on failure, otherwise the result in the form of an object.
|
||||
*/
|
||||
public function fetch( $provider, $url, $args = '' ) {
|
||||
|
Loading…
Reference in New Issue
Block a user