Changeset 46592
- Timestamp:
- 10/26/2019 12:56:50 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r46564 r46592 9 9 10 10 /** 11 * Replaces common plain text characters into formatted entities 11 * Replaces common plain text characters with formatted entities. 12 * 13 * Returns given text with transformations of quotes into smart quotes, apostrophes, 14 * dashes, ellipses, the trademark symbol, and the multiplication symbol. 12 15 * 13 16 * As an example, … … 19 22 * ’cause today’s effort makes it worth tomorrow’s “holiday” … 20 23 * 21 * Code within certain htmlblocks are skipped.24 * Code within certain HTML blocks are skipped. 22 25 * 23 26 * Do not use this function before the {@see 'init'} action hook; everything will break. … … 25 28 * @since 0.71 26 29 * 27 * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases 30 * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases. 28 31 * @global array $shortcode_tags 29 32 * @staticvar array $static_characters … … 45 48 * @staticvar string $apos_flag 46 49 * 47 * @param string $text The text to be formatted50 * @param string $text The text to be formatted. 48 51 * @param bool $reset Set to true for unit testing. Translated patterns will reset. 49 * @return string The string replaced with html entities52 * @return string The string replaced with HTML entities. 50 53 */ 51 54 function wptexturize( $text, $reset = false ) {
Note: See TracChangeset
for help on using the changeset viewer.