Make WordPress Core

Ticket #48397: 48397.diff

File 48397.diff, 938 bytes (added by atachibana, 7 years ago)
  • formatting.php

     
    1010/**
    1111 * Replaces common plain text characters into formatted entities
    1212 *
     13 * This returns given text with transformations of quotes to smart quotes,
     14 * apostrophes, dashes, ellipses, the trademark symbol, and the multiplication symbol.
    1315 * As an example,
    1416 *
    1517 *     'cause today's effort makes it worth tomorrow's "holiday" ...
     
    2325 * Do not use this function before the {@see 'init'} action hook; everything will break.
    2426 *
    2527 * @since 0.71
     28 * @since 4.0  Revised to improve performance and to resolve many bugs. Added the run_wptexturize filter to allow a theme or plugin to permanently disable this feature.
    2629 *
    2730 * @global array $wp_cockneyreplace Array of formatted entities for certain common phrases
    2831 * @global array $shortcode_tags