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.


git-svn-id: https://develop.svn.wordpress.org/trunk@19420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2011-11-23 19:06:52 +00:00
parent 476f618f40
commit fc9bd67e14
6 changed files with 137 additions and 180 deletions

View File

@@ -2616,27 +2616,6 @@ function wp_timezone_supported() {
return true;
}
/**
* Find out which editor should be displayed
*
* @see WP_Editor::wp_default_editor()
* @since 2.5.0
* @deprecated 3.5
*
* @return bool
*/
function wp_default_editor() {
_deprecated_function( __FUNCTION__, '3.3' );
global $wp_editor;
if ( !is_a($wp_editor, 'WP_Editor') ) {
require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
$wp_editor = new WP_Editor;
}
return $wp_editor->wp_default_editor();
}
/**
* Display editor: TinyMCE, HTML, or both.
*