WordPress.org

Make WordPress Core

Ticket #31048: 31048.2.patch

File 31048.2.patch, 1.2 KB (added by SergeyBiryukov, 6 years ago)
  • src/wp-includes/shortcodes.php

     
    100100 *
    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) {
    106106        global $shortcode_tags;
     
    131131 * @since 3.6.0
    132132 *
    133133 * @global array $shortcode_tags
    134  * @param string $tag
     134 * @param string $tag Shortcode tag to check.
    135135 * @return boolean
    136136 */
    137137function shortcode_exists( $tag ) {
     
    145145 * @since 3.6.0
    146146 *
    147147 * @global array $shortcode_tags
    148  * @param string $tag
     148 * @param string $content Content to search for shortcodes.
     149 * @param string $tag     Shortcode tag to check.
    149150 * @return boolean
    150151 */
    151152function has_shortcode( $content, $tag ) {
     
    180181 *
    181182 * @uses $shortcode_tags
    182183 *
    183  * @param string $content Content to search for shortcodes
     184 * @param string $content Content to search for shortcodes.
    184185 * @return string Content with shortcodes filtered out.
    185186 */
    186187function do_shortcode($content) {