Make WordPress Core

Ticket #19956: 19956.diff

File 19956.diff, 889 bytes (added by Otto42, 13 years ago)

Add button class to the upload link

  • wp-admin/includes/media.php

     
    395395
    396396        $img = '<img src="' . esc_url( admin_url( 'images/media-button.png?ver=20111005' ) ) . '" width="15" height="15" />';
    397397
    398         echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>';
     398        echo '<a href="' . esc_url( get_upload_iframe_src() ) . '" class="thickbox add_media button" id="' . esc_attr( $editor_id ) . '-add_media" title="' . esc_attr__( 'Add Media' ) . '" onclick="return false;">' . sprintf( $context, $img ) . '</a>';
    399399}
    400400add_action( 'media_buttons', 'media_buttons' );
    401401