WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/23/2011 07:06:52 PM (9 years ago)
Author:
nacin
Message:

Move WP_Editor to a _WP_Editors encapsulation.

  • WP_Editor will return in 3.4 as a one true API for editor instances. Stick to wp_editor() for now.
  • TinyMCE can now be forced on with tinymce = true. It defaults to the value for user_can_richedit().
  • Restores wp_default_editor(), wp_link_query(), wp_link_dialog(), wp_fullscreen_html().

fixes #19320.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r19016 r19420  
    26182618
    26192619/**
    2620  * Find out which editor should be displayed
    2621  *
    2622  * @see WP_Editor::wp_default_editor()
    2623  * @since 2.5.0
    2624  * @deprecated 3.5
    2625  *
    2626  * @return bool
    2627  */
    2628 function wp_default_editor() {
    2629     _deprecated_function( __FUNCTION__, '3.3' );
    2630 
    2631     global $wp_editor;
    2632     if ( !is_a($wp_editor, 'WP_Editor') ) {
    2633         require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
    2634         $wp_editor = new WP_Editor;
    2635     }
    2636 
    2637     return $wp_editor->wp_default_editor();
    2638 }
    2639 
    2640 /**
    26412620 * Display editor: TinyMCE, HTML, or both.
    26422621 *
Note: See TracChangeset for help on using the changeset viewer.