From 596412fb0be02fb45e1d6400859e80d714b2f426 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Mon, 19 Jan 2015 08:35:05 +0000 Subject: [PATCH] Ensure both parameters and the return for `has_shortcode()` are fully documented. Props cais, SergeyBiryukov See #31048. git-svn-id: https://develop.svn.wordpress.org/trunk@31242 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/shortcodes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/shortcodes.php b/src/wp-includes/shortcodes.php index f6855f542c..181aea048b 100644 --- a/src/wp-includes/shortcodes.php +++ b/src/wp-includes/shortcodes.php @@ -145,8 +145,10 @@ function shortcode_exists( $tag ) { * @since 3.6.0 * * @global array $shortcode_tags - * @param string $tag - * @return boolean + * + * @param string $content Content to search for shortcodes. + * @param string $tag Shortcode tag to check. + * @return bool Whether the passed content contains. the given shortcode. */ function has_shortcode( $content, $tag ) { if ( false === strpos( $content, '[' ) ) {