Make WordPress Core

Ticket #34866: 34866.2.patch

File 34866.2.patch, 1.7 KB (added by swissspidy, 11 years ago)
  • src/wp-includes/class-wp-editor.php

    diff --git src/wp-includes/class-wp-editor.php src/wp-includes/class-wp-editor.php
    index a6504d4..ee877a3 100644
    final class _WP_Editors {  
    261261                 *
    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 );
    267269
  • src/wp-includes/formatting.php

    diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
    index b9383f5..91690d8 100644
    function ent2ncr( $text ) {  
    32683268 *
    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 */
    32743278function format_for_editor( $text, $default_editor = null ) {
    function format_for_editor( $text, $default_editor = null ) {  
    32813285         *
    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 );
    32873293}