Make WordPress Core


Ignore:
Timestamp:
07/16/2015 07:37:07 PM (9 years ago)
Author:
iseulde
Message:

Editor: Add Media should be a button

Props afercia.
Fixes #32969.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r33263 r33298  
    553553
    554554    $id_attribute = $instance === 1 ? ' id="insert-media-button"' : '';
    555     printf( '<a href="#"%s class="button insert-media add_media" data-editor="%s" title="%s">%s</a>',
     555    printf( '<button type="button"%s class="button insert-media add_media" data-editor="%s">%s</button>',
    556556        $id_attribute,
    557557        esc_attr( $editor_id ),
    558         esc_attr__( 'Add Media' ),
    559558        $img . __( 'Add Media' )
    560559    );
Note: See TracChangeset for help on using the changeset viewer.