Changeset 37515
- Timestamp:
- 05/22/2016 06:44:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r37487 r37515 67 67 if ( $reset || ! isset( $static_characters ) ) { 68 68 /** 69 * Filter whether to skip running wptexturize().69 * Filters whether to skip running wptexturize(). 70 70 * 71 71 * Passing false to the filter will effectively short-circuit wptexturize(). … … 196 196 // Must do this every time in case plugins use these filters in a context sensitive manner 197 197 /** 198 * Filter the list of HTML elements not to texturize.198 * Filters the list of HTML elements not to texturize. 199 199 * 200 200 * @since 2.8.0 … … 204 204 $no_texturize_tags = apply_filters( 'no_texturize_tags', $default_no_texturize_tags ); 205 205 /** 206 * Filter the list of shortcodes not to texturize.206 * Filters the list of shortcodes not to texturize. 207 207 * 208 208 * @since 2.8.0 … … 1376 1376 $special_chars = array("?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", "%", "+", chr(0)); 1377 1377 /** 1378 * Filter the list of characters to remove from a filename.1378 * Filters the list of characters to remove from a filename. 1379 1379 * 1380 1380 * @since 2.8.0 … … 1396 1396 if ( count( $parts ) <= 2 ) { 1397 1397 /** 1398 * Filter a sanitized filename string.1398 * Filters a sanitized filename string. 1399 1399 * 1400 1400 * @since 2.8.0 … … 1467 1467 1468 1468 /** 1469 * Filter a sanitized username string.1469 * Filters a sanitized username string. 1470 1470 * 1471 1471 * @since 2.0.1 … … 1494 1494 1495 1495 /** 1496 * Filter a sanitized key string.1496 * Filters a sanitized key string. 1497 1497 * 1498 1498 * @since 3.0.0 … … 1525 1525 1526 1526 /** 1527 * Filter a sanitized title string.1527 * Filters a sanitized title string. 1528 1528 * 1529 1529 * @since 1.2.0 … … 1670 1670 } 1671 1671 /** 1672 * Filter a sanitized HTML class string.1672 * Filters a sanitized HTML class string. 1673 1673 * 1674 1674 * @since 2.8.0 … … 1919 1919 function format_to_edit( $content, $rich_text = false ) { 1920 1920 /** 1921 * Filter the text to be formatted for editing.1921 * Filters the text to be formatted for editing. 1922 1922 * 1923 1923 * @since 1.2.0 … … 2396 2396 2397 2397 /** 2398 * Filter the Smiley image URL before it's used in the image element.2398 * Filters the Smiley image URL before it's used in the image element. 2399 2399 * 2400 2400 * @since 2.9.0 … … 2479 2479 if ( strlen( $email ) < 3 ) { 2480 2480 /** 2481 * Filter whether an email address is valid.2481 * Filters whether an email address is valid. 2482 2482 * 2483 2483 * This filter is evaluated under several different contexts, such as 'email_too_short', … … 2716 2716 if ( strlen( $email ) < 3 ) { 2717 2717 /** 2718 * Filter a sanitized email address.2718 * Filters a sanitized email address. 2719 2719 * 2720 2720 * This filter is evaluated under several contexts, including 'email_too_short', … … 2859 2859 2860 2860 /** 2861 * Filter the human readable difference between two timestamps.2861 * Filters the human readable difference between two timestamps. 2862 2862 * 2863 2863 * @since 4.0.0 … … 2898 2898 2899 2899 /** 2900 * Filter the number of words in an excerpt.2900 * Filters the number of words in an excerpt. 2901 2901 * 2902 2902 * @since 2.7.0 … … 2906 2906 $excerpt_length = apply_filters( 'excerpt_length', 55 ); 2907 2907 /** 2908 * Filter the string in the "more" link displayed after a trimmed excerpt.2908 * Filters the string in the "more" link displayed after a trimmed excerpt. 2909 2909 * 2910 2910 * @since 2.9.0 … … 2916 2916 } 2917 2917 /** 2918 * Filter the trimmed excerpt string.2918 * Filters the trimmed excerpt string. 2919 2919 * 2920 2920 * @since 2.8.0 … … 2972 2972 2973 2973 /** 2974 * Filter the text content after words have been trimmed.2974 * Filters the text content after words have been trimmed. 2975 2975 * 2976 2976 * @since 3.3.0 … … 2995 2995 2996 2996 /** 2997 * Filter text before named entities are converted into numbered entities.2997 * Filters text before named entities are converted into numbered entities. 2998 2998 * 2999 2999 * A non-null string must be returned for the filter to be evaluated. … … 3294 3294 3295 3295 /** 3296 * Filter the text after it is formatted for the editor.3296 * Filters the text after it is formatted for the editor. 3297 3297 * 3298 3298 * @since 4.3.0 … … 3447 3447 3448 3448 /** 3449 * Filter a string cleaned and escaped for output as a URL.3449 * Filters a string cleaned and escaped for output as a URL. 3450 3450 * 3451 3451 * @since 2.3.0 … … 3506 3506 $safe_text = str_replace( "\n", '\\n', addslashes( $safe_text ) ); 3507 3507 /** 3508 * Filter a string cleaned and escaped for output in JavaScript.3508 * Filters a string cleaned and escaped for output in JavaScript. 3509 3509 * 3510 3510 * Text passed to esc_js() is stripped of invalid or special characters, … … 3531 3531 $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES ); 3532 3532 /** 3533 * Filter a string cleaned and escaped for output in HTML.3533 * Filters a string cleaned and escaped for output in HTML. 3534 3534 * 3535 3535 * Text passed to esc_html() is stripped of invalid or special characters … … 3556 3556 $safe_text = _wp_specialchars( $safe_text, ENT_QUOTES ); 3557 3557 /** 3558 * Filter a string cleaned and escaped for output in an HTML attribute.3558 * Filters a string cleaned and escaped for output in an HTML attribute. 3559 3559 * 3560 3560 * Text passed to esc_attr() is stripped of invalid or special characters … … 3580 3580 $safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( 'blog_charset' ) ); 3581 3581 /** 3582 * Filter a string cleaned and escaped for output in a textarea element.3582 * Filters a string cleaned and escaped for output in a textarea element. 3583 3583 * 3584 3584 * @since 3.1.0 … … 3601 3601 $safe_tag = strtolower( preg_replace('/[^a-zA-Z0-9_:]/', '', $tag_name) ); 3602 3602 /** 3603 * Filter a string cleaned and escaped for output as an HTML tag.3603 * Filters a string cleaned and escaped for output as an HTML tag. 3604 3604 * 3605 3605 * @since 2.8.0 … … 3873 3873 3874 3874 /** 3875 * Filter an option value following sanitization.3875 * Filters an option value following sanitization. 3876 3876 * 3877 3877 * @since 2.3.0 … … 3929 3929 $array = stripslashes_deep( $array ); 3930 3930 /** 3931 * Filter the array of variables derived from a parsed string.3931 * Filters the array of variables derived from a parsed string. 3932 3932 * 3933 3933 * @since 2.3.0 … … 4014 4014 4015 4015 /** 4016 * Filter a fragment from the pattern passed to wp_sprintf().4016 * Filters a fragment from the pattern passed to wp_sprintf(). 4017 4017 * 4018 4018 * If the fragment is unchanged, then sprintf() will be run on the fragment. … … 4060 4060 4061 4061 /** 4062 * Filter the translated delimiters used by wp_sprintf_l().4062 * Filters the translated delimiters used by wp_sprintf_l(). 4063 4063 * Placeholders (%s) are included to assist translators and then 4064 4064 * removed before the array of strings reaches the filter. … … 4283 4283 4284 4284 /** 4285 * Filter a sanitized text field string.4285 * Filters a sanitized text field string. 4286 4286 * 4287 4287 * @since 2.9.0 … … 4345 4345 $sani_mime_type = preg_replace( '/[^-+*.a-zA-Z0-9\/]/', '', $mime_type ); 4346 4346 /** 4347 * Filter a mime type following sanitization.4347 * Filters a mime type following sanitization. 4348 4348 * 4349 4349 * @since 3.1.3 … … 4372 4372 $urls_to_ping = implode( "\n", $urls_to_ping ); 4373 4373 /** 4374 * Filter a list of trackback URLs following sanitization.4374 * Filters a list of trackback URLs following sanitization. 4375 4375 * 4376 4376 * The string returned here consists of a space or carriage return-delimited list … … 4465 4465 if ( empty( $spaces ) ) { 4466 4466 /** 4467 * Filter the regexp for common whitespace characters.4467 * Filters the regexp for common whitespace characters. 4468 4468 * 4469 4469 * This string is substituted for the \s sequence as needed in regular … … 4547 4547 $settings = array( 4548 4548 /** 4549 * Filter the URL where emoji png images are hosted.4549 * Filters the URL where emoji png images are hosted. 4550 4550 * 4551 4551 * @since 4.2.0 … … 4556 4556 4557 4557 /** 4558 * Filter the extension of the emoji png files.4558 * Filters the extension of the emoji png files. 4559 4559 * 4560 4560 * @since 4.2.0 … … 4565 4565 4566 4566 /** 4567 * Filter the URL where emoji SVG images are hosted.4567 * Filters the URL where emoji SVG images are hosted. 4568 4568 * 4569 4569 * @since 4.6.0 … … 4574 4574 4575 4575 /** 4576 * Filter the extension of the emoji SVG files.4576 * Filters the extension of the emoji SVG files. 4577 4577 * 4578 4578 * @since 4.6.0
Note: See TracChangeset
for help on using the changeset viewer.