Make WordPress Core


Ignore:
Timestamp:
03/05/2014 10:47:02 PM (10 years ago)
Author:
johnbillion
Message:

Deprecate format_to_post() and remove its filter. Fixes #25526. Props simonwheatley

File:
1 edited

Legend:

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

    r27344 r27424  
    14221422    if ( ! $richedit )
    14231423        $content = esc_textarea( $content );
    1424     return $content;
    1425 }
    1426 
    1427 /**
    1428  * Holder for the 'format_to_post' filter.
    1429  *
    1430  * @since 0.71
    1431  *
    1432  * @param string $content The text to pass through the filter.
    1433  * @return string Text returned from the 'format_to_post' filter.
    1434  */
    1435 function format_to_post($content) {
    1436     /**
    1437      * Filter the string returned by format_to_post().
    1438      *
    1439      * @since 1.2.0
    1440      *
    1441      * @param string $content The string to format.
    1442      */
    1443     $content = apply_filters( 'format_to_post', $content );
    14441424    return $content;
    14451425}
Note: See TracChangeset for help on using the changeset viewer.