Make WordPress Core


Ignore:
Timestamp:
12/13/2015 07:21:32 PM (9 years ago)
Author:
swissspidy
Message:

Docs: Improve documentation for format_for_editor() and the 'the_editor_content' filter it is hooked to.

Props AramZS for initial patch.
Fixes #34866.

File:
1 edited

Legend:

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

    r35848 r35904  
    32693269 * @since 4.3.0
    32703270 *
    3271  * @param string $text The text to be formatted.
     3271 * @see _WP_Editors::editor()
     3272 *
     3273 * @param string $text           The text to be formatted.
     3274 * @param string $default_editor The default editor for the current user.
     3275 *                               It is usually either 'html' or 'tinymce'.
    32723276 * @return string The formatted text after filter is applied.
    32733277 */
     
    32823286     * @since 4.3.0
    32833287     *
    3284      * @param string $text The formatted text.
     3288     * @param string $text           The formatted text.
     3289     * @param string $default_editor The default editor for the current user.
     3290     *                               It is usually either 'html' or 'tinymce'.
    32853291     */
    32863292    return apply_filters( 'format_for_editor', $text, $default_editor );
Note: See TracChangeset for help on using the changeset viewer.