WordPress.org

Make WordPress Core

Changeset 31243


Ignore:
Timestamp:
01/19/2015 08:39:10 AM (3 years ago)
Author:
DrewAPicture
Message:

Add more complete documentation for parameters, globals, and return values to the DocBlocks for remove_shortcode(), shortcode_exists(), and do_shortcode().

Props SergeyBiryukov.
Fixes #31048.

File:
1 edited

Legend:

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

    r31242 r31243  
    101101 * @uses $shortcode_tags
    102102 *
    103  * @param string $tag shortcode tag to remove hook for.
     103 * @param string $tag Shortcode tag to remove hook for.
    104104 */
    105105function remove_shortcode($tag) {
     
    131131 * @since 3.6.0
    132132 *
    133  * @global array $shortcode_tags
    134  * @param string $tag
    135  * @return boolean
     133 * @global array $shortcode_tags List of shortcode tags and their callback hooks.
     134 *
     135 * @param string $tag Shortcode tag to check.
     136 * @return bool Whether the given shortcode exists.
    136137 */
    137138function shortcode_exists( $tag ) {
     
    181182 * @since 2.5.0
    182183 *
    183  * @uses $shortcode_tags
    184  *
    185  * @param string $content Content to search for shortcodes
     184 * @global array $shortcode_tags List of shortcode tags and their callback hooks.
     185 *
     186 * @param string $content Content to search for shortcodes.
    186187 * @return string Content with shortcodes filtered out.
    187188 */
Note: See TracChangeset for help on using the changeset viewer.