WordPress.org

Make WordPress Core

Ticket #32236: 32236.patch

File 32236.patch, 983 bytes (added by afercia, 5 years ago)
  • src/wp-includes/js/media-views.js

     
    42114211 * @augments Backbone.View
    42124212 */
    42134213var Button = wp.media.View.extend({
    4214         tagName:    'a',
     4214        tagName:    'button',
    42154215        className:  'media-button',
    4216         attributes: { href: '#' },
     4216        attributes: { type: 'button' },
    42174217
    42184218        events: {
    42194219                'click': 'click'
  • src/wp-includes/js/media/views/button.js

     
    99 * @augments Backbone.View
    1010 */
    1111var Button = wp.media.View.extend({
    12         tagName:    'a',
     12        tagName:    'button',
    1313        className:  'media-button',
    14         attributes: { href: '#' },
     14        attributes: { type: 'button' },
    1515
    1616        events: {
    1717                'click': 'click'