Changeset 53585
- Timestamp:
- 06/28/2022 08:35:45 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/shortcodes.php
r51154 r53585 32 32 33 33 /** 34 * Container for storing shortcode tags and their hook to call for the shortcode 34 * Container for storing shortcode tags and their hook to call for the shortcode. 35 35 * 36 36 * @since 2.5.0 … … 106 106 107 107 /** 108 * Clear all shortcodes. 109 * 110 * This function is simple, it clears all of the shortcode tags by replacing the 111 * shortcodes global by a empty array. This is actually a very efficient method 112 * for removing all shortcodes. 108 * Clears all shortcodes. 109 * 110 * This function clears all of the shortcode tags by replacing the shortcodes global with 111 * an empty array. This is actually an efficient method for removing all shortcodes. 113 112 * 114 113 * @since 2.5.0 … … 123 122 124 123 /** 125 * Whether a registered shortcode exists named $tag124 * Determines whether a registered shortcode exists named $tag. 126 125 * 127 126 * @since 3.6.0 … … 138 137 139 138 /** 140 * Whether the passed content contains the specified shortcode139 * Determines whether the passed content contains the specified shortcode. 141 140 * 142 141 * @since 3.6.0 … … 171 170 172 171 /** 173 * Search content for shortcodes and filter shortcodes through their hooks.172 * Searches content for shortcodes and filter shortcodes through their hooks. 174 173 * 175 174 * This function is an alias for do_shortcode(). … … 189 188 190 189 /** 191 * Search content for shortcodes and filter shortcodes through their hooks.190 * Searches content for shortcodes and filter shortcodes through their hooks. 192 191 * 193 192 * If there are no shortcode tags defined, then the content will be returned … … 235 234 236 235 /** 237 * Retrieve the shortcode regular expression for searching.236 * Retrieves the shortcode regular expression for searching. 238 237 * 239 238 * The regular expression combines the shortcode tags in the regular expression … … 342 341 * @since 4.7.0 343 342 * 344 * @param false|string $return 345 * @param string $tag 346 * @param array|string $attr 347 * @param array $m 343 * @param false|string $return Short-circuit return value. Either false or the value to replace the shortcode with. 344 * @param string $tag Shortcode name. 345 * @param array|string $attr Shortcode attributes array or empty string. 346 * @param array $m Regular expression match array. 348 347 */ 349 348 $return = apply_filters( 'pre_do_shortcode_tag', false, $tag, $attr, $m ); … … 370 369 371 370 /** 372 * Search only inside HTML elements for shortcodes and process them.371 * Searches only inside HTML elements for shortcodes and process them. 373 372 * 374 373 * Any [ or ] characters remaining inside elements will be HTML encoded … … 484 483 485 484 /** 486 * Remove placeholders added by do_shortcodes_in_html_tags().485 * Removes placeholders added by do_shortcodes_in_html_tags(). 487 486 * 488 487 * @since 4.2.3 … … 504 503 505 504 /** 506 * Retrieve the shortcode attributes regex.505 * Retrieves the shortcode attributes regex. 507 506 * 508 507 * @since 4.4.0 509 508 * 510 * @return string The shortcode attribute regular expression 509 * @return string The shortcode attribute regular expression. 511 510 */ 512 511 function get_shortcode_atts_regex() { … … 515 514 516 515 /** 517 * Retrieve all attributes from the shortcodes tag.516 * Retrieves all attributes from the shortcodes tag. 518 517 * 519 518 * The attributes list has the attribute name as the key and the value of the … … 566 565 567 566 /** 568 * Combine user attributes with known attributes and fill in defaults when needed.567 * Combines user attributes with known attributes and fill in defaults when needed. 569 568 * 570 569 * The pairs should be considered to be all of the attributes which are … … 615 614 616 615 /** 617 * Remove all shortcode tags from the given content.616 * Removes all shortcode tags from the given content. 618 617 * 619 618 * @since 2.5.0
Note: See TracChangeset
for help on using the changeset viewer.