WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/19/15 08:35:05 (2 years ago)
Author:
DrewAPicture
Message:

Ensure both parameters and the return for has_shortcode() are fully documented.

Props cais, SergeyBiryukov
See #31048.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/shortcodes.php

    r31168 r31242  
    146146 * 
    147147 * @global array $shortcode_tags 
    148  * @param string $tag 
    149  * @return boolean 
     148 * 
     149 * @param string $content Content to search for shortcodes. 
     150 * @param string $tag     Shortcode tag to check. 
     151 * @return bool Whether the passed content contains. the given shortcode. 
    150152 */ 
    151153function has_shortcode( $content, $tag ) { 
Note: See TracChangeset for help on using the changeset viewer.