Accessibility: Make the inline uploader button a real button.

See `wp.media.view.UploaderWindow`.

Fixes #39305.

Built from https://develop.svn.wordpress.org/trunk@40021


git-svn-id: http://core.svn.wordpress.org/trunk@39958 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2017-01-27 18:32:41 +00:00
parent a6d772108d
commit 4ca4ff999a
3 changed files with 3 additions and 3 deletions

View File

@ -8385,7 +8385,7 @@ UploaderWindow = wp.media.View.extend({
initialize: function() {
var uploader;
this.$browser = $('<a href="#" class="browser" />').hide().appendTo('body');
this.$browser = $( '<button type="button" class="browser" />' ).hide().appendTo( 'body' );
uploader = this.options.uploader = _.defaults( this.options.uploader || {}, {
dropzone: this.$el,

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.8-alpha-40020';
$wp_version = '4.8-alpha-40021';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.