Editor: Add Media should be a button
Props afercia. Fixes #32969. git-svn-id: https://develop.svn.wordpress.org/trunk@33298 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c40301f1a0
commit
03653fa600
@ -552,10 +552,9 @@ function media_buttons($editor_id = 'content') {
|
||||
$img = '<span class="wp-media-buttons-icon"></span> ';
|
||||
|
||||
$id_attribute = $instance === 1 ? ' id="insert-media-button"' : '';
|
||||
printf( '<a href="#"%s class="button insert-media add_media" data-editor="%s" title="%s">%s</a>',
|
||||
printf( '<button type="button"%s class="button insert-media add_media" data-editor="%s">%s</button>',
|
||||
$id_attribute,
|
||||
esc_attr( $editor_id ),
|
||||
esc_attr__( 'Add Media' ),
|
||||
$img . __( 'Add Media' )
|
||||
);
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user