Make WordPress Core

Changeset 32467


Ignore:
Timestamp:
05/09/2015 06:06:50 AM (7 years ago)
Author:
wonderboymusic
Message:

In media-template.php, change a few <a href="#" class="button">s to <button type="button" class="button" ...>.

See #26550.

File:
1 edited

Legend:

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

    r32258 r32467  
    204204                <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3>
    205205                <p class="upload-instructions drop-instructions"><?php _ex( 'or', 'Uploader: Drop files here - or - Select Files' ); ?></p>
    206                 <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
     206                <button type="button" class="browser button button-hero"><?php _e( 'Select Files' ); ?></button>
    207207            </div>
    208208
     
    330330                <div class="attachment-actions">
    331331                    <# if ( 'image' === data.type && ! data.uploading && data.sizes && data.can.save ) { #>
    332                         <a class="button edit-attachment" href="#"><?php _e( 'Edit Image' ); ?></a>
     332                    <button type="button" class="button edit-attachment"><?php _e( 'Edit Image' ); ?></button>
    333333                    <# } #>
    334334                </div>
Note: See TracChangeset for help on using the changeset viewer.