X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/8f374b7233bc2815ccc387e448d208c5434eb961..3d39054f012aefe514b3f5509e32f09fc4feda44:/wp-includes/class-wp-editor.php diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 04bb7c91..f7137f83 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -24,25 +24,86 @@ final class _WP_Editors { private static $has_quicktags = false; private static $has_medialib = false; private static $editor_buttons_css = true; + private static $drag_drop_upload = false; + private static $old_dfw_compat = false; private function __construct() {} - public static function parse_settings($editor_id, $settings) { - $set = wp_parse_args( $settings, array( - 'wpautop' => true, // use wpautop? - 'media_buttons' => true, // show insert/upload button(s) - 'textarea_name' => $editor_id, // set the textarea name to something different, square brackets [] can be used here - 'textarea_rows' => get_option('default_post_edit_rows', 10), // rows="..." - 'tabindex' => '', - 'editor_css' => '', // intended for extra styles for both visual and HTML editors buttons, needs to include the