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:
Scott Taylor
2014-12-20 20:55:21 +00:00
parent 04ed6499cd
commit f6f12912e2
6 changed files with 8 additions and 6 deletions

View File

@@ -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();