Make WordPress Core

Ticket #34866: 34866.patch

File 34866.patch, 1.5 KB (added by AramZS, 11 years ago)

First pass at making documentation consistent with current behavior.

  • wp-includes/class-wp-editor.php

     
    262262                 * @since 2.1.0
    263263                 *
    264264                 * @param string $content Default editor content.
     265                 * @param string $default_editor Default enabled editor for current user.
     266                 *                               Expects 'html' or 'tinymce'. If TinyMCE is disabled
     267                 *                               this filter will always receive 'html', regardless of settings
     268                 *                               passed to the editor().
    265269                 */
    266270                $content = apply_filters( 'the_editor_content', $content, $default_editor );
    267271
  • wp-includes/formatting.php

     
    32863286 * @since 4.3.0
    32873287 *
    32883288 * @param string $text The text to be formatted.
     3289 * @param string $default_editor The default editor for the current user. It is usually either
     3290 *                               'html' or 'tinymce'.
     3291 *
     3292 * @see _WP_Editors()::editor()
     3293 *
    32893294 * @return string The formatted text after filter is applied.
    32903295 */
    32913296function format_for_editor( $text, $default_editor = null ) {
     
    32993304         * @since 4.3.0
    33003305         *
    33013306         * @param string $text The formatted text.
     3307         * @param string $default_editor The default editor for the current user.
    33023308         */
    33033309        return apply_filters( 'format_for_editor', $text, $default_editor );
    33043310}