mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 00:52:55 +01:00
Editor: fix warnings in class-wp-editor.php, see #30453.
git-svn-id: https://develop.svn.wordpress.org/trunk@30583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3fb3ffbc78
commit
59350a85ad
@ -76,20 +76,21 @@ final class _WP_Editors {
|
||||
$settings = apply_filters( 'wp_editor_settings', $settings, $editor_id );
|
||||
|
||||
$set = wp_parse_args( $settings, array(
|
||||
'wpautop' => true,
|
||||
'media_buttons' => true,
|
||||
'default_editor' => '',
|
||||
'drag_drop_upload' => false,
|
||||
'textarea_name' => $editor_id,
|
||||
'textarea_rows' => 20,
|
||||
'tabindex' => '',
|
||||
'tabfocus_elements' => ':prev,:next',
|
||||
'editor_css' => '',
|
||||
'editor_class' => '',
|
||||
'teeny' => false,
|
||||
'dfw' => false,
|
||||
'tinymce' => true,
|
||||
'quicktags' => true
|
||||
'wpautop' => true,
|
||||
'media_buttons' => true,
|
||||
'default_editor' => '',
|
||||
'drag_drop_upload' => false,
|
||||
'textarea_name' => $editor_id,
|
||||
'textarea_rows' => 20,
|
||||
'tabindex' => '',
|
||||
'tabfocus_elements' => ':prev,:next',
|
||||
'editor_css' => '',
|
||||
'editor_class' => '',
|
||||
'teeny' => false,
|
||||
'dfw' => false,
|
||||
'_content_editor_dfw' => false,
|
||||
'tinymce' => true,
|
||||
'quicktags' => true
|
||||
) );
|
||||
|
||||
self::$this_tinymce = ( $set['tinymce'] && user_can_richedit() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user