mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Improve some docs for @param. Remove an unneeded $wpdb global import.
See #30799. git-svn-id: https://develop.svn.wordpress.org/trunk@30979 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -126,7 +126,8 @@ class WP_Embed {
|
||||
* @type int $height Height of the embed in pixels.
|
||||
* }
|
||||
* @param string $url The URL attempting to be embedded.
|
||||
* @return string The embed HTML on success, otherwise the original URL.
|
||||
* @return string|false The embed HTML on success, otherwise the original URL.
|
||||
* `->maybe_make_link()` can return false on failure.
|
||||
*/
|
||||
public function shortcode( $attr, $url = '' ) {
|
||||
$post = get_post();
|
||||
|
||||
Reference in New Issue
Block a user