mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user