Changeset 48175
- Timestamp:
- 06/26/2020 09:28:21 AM (4 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/deprecated.php
r48142 r48175 2948 2948 * 2949 2949 * Ensures that the contents of a `<pre>...</pre>` HTML block are not 2950 * converted into paragraphs or line -breaks.2950 * converted into paragraphs or line breaks. 2951 2951 * 2952 2952 * @since 1.2.0 … … 2954 2954 * 2955 2955 * @param array|string $matches The array or string 2956 * @return string The pre block without paragraph/line -break conversion.2956 * @return string The pre block without paragraph/line break conversion. 2957 2957 */ 2958 2958 function clean_pre($matches) { -
trunk/src/wp-includes/formatting.php
r48174 r48175 426 426 427 427 /** 428 * Replaces double line -breaks with paragraph elements.428 * Replaces double line breaks with paragraph elements. 429 429 * 430 430 * A group of regex replaces used to identify text formatted with newlines and 431 * replace double line -breaks with HTML paragraph tags. The remaining line-breaks431 * replace double line breaks with HTML paragraph tags. The remaining line breaks 432 432 * after conversion become <<br />> tags, unless $br is set to '0' or 'false'. 433 433 * … … 435 435 * 436 436 * @param string $pee The text which has to be formatted. 437 * @param bool $br Optional. If set, this will convert all remaining line -breaks437 * @param bool $br Optional. If set, this will convert all remaining line breaks 438 438 * after paragraphing. Line breaks within `<script>`, `<style>`, 439 439 * and `<svg>` tags are not affected. Default true. … … 928 928 * double if set to 'double' or both if otherwise set. 929 929 * Default is ENT_NOQUOTES. 930 * @param false|string $charset Optional. The character encoding of the string. Default isfalse.931 * @param bool $double_encode Optional. Whether to encode existing html entities. Default isfalse.930 * @param false|string $charset Optional. The character encoding of the string. Default false. 931 * @param bool $double_encode Optional. Whether to encode existing html entities. Default false. 932 932 * @return string The encoded text with HTML entities. 933 933 */ … … 1092 1092 * 1093 1093 * @param string $string The text which is to be checked. 1094 * @param bool $strip Optional. Whether to attempt to strip out invalid UTF8. Default isfalse.1094 * @param bool $strip Optional. Whether to attempt to strip out invalid UTF8. Default false. 1095 1095 * @return string The checked text. 1096 1096 */ … … 3790 3790 * 3791 3791 * @param string $text Optional. The excerpt. If set to empty, an excerpt is generated. 3792 * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default isnull.3792 * @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default null. 3793 3793 * @return string The excerpt. 3794 3794 */
Note: See TracChangeset
for help on using the changeset viewer.