`wp.media.view.Button` should create `<button>`s, not `<a href="#">`s.

Props afercia.
See #32236.

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


git-svn-id: http://core.svn.wordpress.org/trunk@32434 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-05-08 20:39:27 +00:00
parent a417b2cf1a
commit 2c42a665a2
3 changed files with 4 additions and 4 deletions

View File

@ -4211,9 +4211,9 @@ module.exports = ButtonGroup;
* @augments Backbone.View
*/
var Button = wp.media.View.extend({
tagName: 'a',
tagName: 'button',
className: 'media-button',
attributes: { href: '#' },
attributes: { type: 'button' },
events: {
'click': 'click'

File diff suppressed because one or more lines are too long

View File

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