Make WordPress Core

Changeset 35904


Ignore:
Timestamp:
12/13/2015 07:21:32 PM (11 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.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r35660 r35904  
    262262                 * @since 2.1.0
    263263                 *
    264                  * @param string $content Default editor content.
     264                 * @param string $content        Default editor content.
     265                 * @param string $default_editor The default editor for the current user.
     266                 *                               Either 'html' or 'tinymce'.
    265267                 */
    266268                $content = apply_filters( 'the_editor_content', $content, $default_editor );
  • 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.