mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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
This commit is contained in:
parent
352be0b432
commit
596412fb0b
@ -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, '[' ) ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user