Changeset 46596 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 10/26/2019 09:07:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r46592 r46596 231 231 * @since 2.8.0 232 232 * 233 * @param array$default_no_texturize_tags An array of HTML element names.233 * @param string[] $default_no_texturize_tags An array of HTML element names. 234 234 */ 235 235 $no_texturize_tags = apply_filters( 'no_texturize_tags', $default_no_texturize_tags ); … … 239 239 * @since 2.8.0 240 240 * 241 * @param array$default_no_texturize_shortcodes An array of shortcode names.241 * @param string[] $default_no_texturize_shortcodes An array of shortcode names. 242 242 */ 243 243 $no_texturize_shortcodes = apply_filters( 'no_texturize_shortcodes', $default_no_texturize_shortcodes ); … … 398 398 * @access private 399 399 * 400 * @param string $textText to check. Must be a tag like `<html>` or `[shortcode]`.401 * @param array $stack Listof open tag elements.402 * @param array $disabled_elements Thetag names to match against. Spaces are not allowed in tag names.400 * @param string $text Text to check. Must be a tag like `<html>` or `[shortcode]`. 401 * @param string[] $stack Array of open tag elements. 402 * @param string[] $disabled_elements Array of tag names to match against. Spaces are not allowed in tag names. 403 403 */ 404 404 function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) { … … 737 737 * @access private 738 738 * @ignore 739 * @internal This function will be removed in 4.5.0 per Shortcode API Roadmap.740 739 * @since 4.4.0 741 740 * 742 * @param array $tagnames Listof shortcodes to find.741 * @param string[] $tagnames Array of shortcodes to find. 743 742 * @return string The regular expression 744 743 */ … … 2001 2000 * @since 2.1.0 2002 2001 * 2003 * @param string $filename The filename to be sanitized 2004 * @return string The sanitized filename 2002 * @param string $filename The filename to be sanitized. 2003 * @return string The sanitized filename. 2005 2004 */ 2006 2005 function sanitize_file_name( $filename ) { … … 2012 2011 * @since 2.8.0 2013 2012 * 2014 * @param array $special_chars Characters to remove.2015 * @param string $filename_raw Filename as it was passed into sanitize_file_name().2013 * @param string[] $special_chars Array of characters to remove. 2014 * @param string $filename_raw The original filename to be sanitized. 2016 2015 */ 2017 2016 $special_chars = apply_filters( 'sanitize_file_name_chars', $special_chars, $filename_raw ); … … 4269 4268 * @since 2.8.0 4270 4269 * 4271 * @param string $url The URL to be cleaned.4272 * @param array$protocols Optional. An array of acceptable protocols.4273 * Defaults to return value of wp_allowed_protocols()4274 * @param string $_context Private. Use esc_url_raw() for database usage.4270 * @param string $url The URL to be cleaned. 4271 * @param string[] $protocols Optional. An array of acceptable protocols. 4272 * Defaults to return value of wp_allowed_protocols() 4273 * @param string $_context Private. Use esc_url_raw() for database usage. 4275 4274 * @return string The cleaned $url after the {@see 'clean_url'} filter is applied. 4276 4275 */ … … 4377 4376 * @since 2.8.0 4378 4377 * 4379 * @param string $url The URL to be cleaned.4380 * @param array$protocols An array of acceptable protocols.4378 * @param string $url The URL to be cleaned. 4379 * @param string[] $protocols An array of acceptable protocols. 4381 4380 * @return string The cleaned URL. 4382 4381 */ … … 5121 5120 * @global string $_links_add_target 5122 5121 * 5123 * @param string $content String to search for links in.5124 * @param string $target The Target to add to the links.5125 * @param array$tags An array of tags to apply to.5122 * @param string $content String to search for links in. 5123 * @param string $target The Target to add to the links. 5124 * @param string[] $tags An array of tags to apply to. 5126 5125 * @return string The processed content. 5127 5126 */
Note: See TracChangeset
for help on using the changeset viewer.