Make WordPress Core

Ticket #19550: 19550-docs.diff

File 19550-docs.diff, 725 bytes (added by miqrogroove, 10 years ago)
  • src/wp-includes/formatting.php

     
    3737
    3838        // No need to set up these static variables more than once
    3939        if ( ! isset( $static_characters ) ) {
     40                /**
     41                 * A filter that disables the wptexturize() function.
     42                 *
     43                 * This filter runs only once, the first time this function is called.
     44                 *
     45                 * @since 4.0.0
     46                 *
     47                 * @param bool $run_texturize Set it to false, wptexturize() will never run.
     48                 */
    4049                $run_texturize = apply_filters( 'run_wptexturize', $run_texturize );
    4150                if ( false === $run_texturize ) {
    4251                        return $text;