WordPress.org

Make WordPress Core

Changeset 32464


Ignore:
Timestamp:
05/08/2015 08:38:55 PM (5 years ago)
Author:
wonderboymusic
Message:

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

Props afercia.
See #32236.

Location:
trunk/src/wp-includes/js
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-views.js

    r32463 r32464  
    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: {
  • trunk/src/wp-includes/js/media/views/button.js

    r31935 r32464  
    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: {
Note: See TracChangeset for help on using the changeset viewer.