Make WordPress Core

Changeset 28723


Ignore:
Timestamp:
06/10/2014 06:28:19 AM (10 years ago)
Author:
DrewAPicture
Message:

Add inline documentation for the run_wptexturize filter.

Props miqrogroove for the original patch.
Fixes #19550.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r28721 r28723  
    3838    // No need to set up these static variables more than once
    3939    if ( ! isset( $static_characters ) ) {
     40        /**
     41         * Filter whether to skip running `wptexturize()`.
     42         *
     43         * Passing false to the filter will effectively short-circuit `wptexturize()`.
     44         * returning the original text passed to the function instead.
     45         *
     46         * The filter runs only once, the first time `wptexturize()` is called.
     47         *
     48         * @since 4.0.0
     49         *
     50         * @param bool $run_texturize Whether to short-circuit `wptexturize()`.
     51         */
    4052        $run_texturize = apply_filters( 'run_wptexturize', $run_texturize );
    4153        if ( false === $run_texturize ) {
Note: See TracChangeset for help on using the changeset viewer.