From 8fa07555847f1a112737bf7da9ffe5ec06dca083 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 4 Nov 2014 20:48:23 +0000 Subject: [PATCH] Add some docs to `wp.media.view.EditorUploader`. Props ericlewis. See #29951. Built from https://develop.svn.wordpress.org/trunk@30234 git-svn-id: http://core.svn.wordpress.org/trunk@30234 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-views.js | 11 +++++++++++ wp-includes/version.php | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index 62d2e4353f..cc02f43d0d 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -3880,6 +3880,9 @@ }); /** + * Creates a dropzone on WP editor instances (elements with .wp-editor-wrap + * or #wp-fullscreen-body) and relays drag'n'dropped files to a media workflow. + * * wp.media.view.EditorUploader * * @class @@ -3897,6 +3900,9 @@ overDropzone: false, draggingFile: null, + /** + * Bind drag'n'drop events to callbacks. + */ initialize: function() { var self = this; @@ -3927,6 +3933,11 @@ return this; }, + /** + * Check browser support for drag'n'drop. + * + * @return Boolean + */ browserSupport: function() { var supports = false, div = document.createElement('div'); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4bc7e66ac0..7bc0eec206 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30233'; +$wp_version = '4.1-alpha-30234'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.