WordPress.org

Make WordPress Core

Changeset 11421


Ignore:
Timestamp:
05/21/2009 01:42:40 AM (9 years ago)
Author:
azaozz
Message:

Show "Delete" in Media -> Add New, props mgriepentrog, fixes #7879

Location:
trunk/wp-admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/async-upload.php

    r11380 r11421  
    3131    if ( 2 == $_REQUEST['fetch'] ) {
    3232        add_filter('attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2);
    33         echo get_media_item($id, array( 'send' => false, 'delete' => false ));
     33        echo get_media_item($id, array( 'send' => false, 'delete' => true ));
    3434    } else {
    3535        add_filter('attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2);
  • trunk/wp-admin/css/colors-classic.css

    r11417 r11421  
    391391
    392392.submitbox .submitdelete:hover,
    393 #media-upload a.delete:hover {
     393#media-items a.delete:hover {
    394394    color: #fff;
    395395    background-color: #f00;
     
    468468#the-comment-list p.comment-author strong a,
    469469#media-upload a.del-link,
    470 #media-upload a.delete,
     470#media-items a.delete,
    471471.ui-tabs-nav a,
    472472.plugins a.delete {
     
    712712}
    713713
    714 #media-upload a.delete {
    715     color: #888;
    716 }
    717 
    718714/* password strength meter */
    719715#pass-strength-result {
  • trunk/wp-admin/css/colors-fresh.css

    r11417 r11421  
    387387
    388388.submitbox .submitdelete:hover,
    389 #media-upload a.delete:hover {
     389#media-items a.delete:hover {
    390390    color: #fff;
    391391    background-color: #f00;
     
    464464#the-comment-list p.comment-author strong a,
    465465#media-upload a.del-link,
    466 #media-upload a.delete,
     466#media-items a.delete,
    467467.ui-tabs-nav a,
    468468.plugins a.delete {
     
    711711}
    712712
    713 #media-upload a.delete {
    714     color: #888;
    715 }
    716 
    717713#pass-strength-result {
    718714    background-color: #eee;
  • trunk/wp-admin/css/media.css

    r11372 r11421  
    270270    vertical-align: top;
    271271    width: auto;
    272 }
    273 
    274 #media-upload a.delete,
    275 #media-upload a.del-link {
    276     padding: 0 3px 1px;
    277272}
    278273
  • trunk/wp-admin/wp-admin.css

    r11405 r11421  
    29432943}
    29442944
     2945#media-items a.delete,
     2946#media-items a.del-link {
     2947    padding: 1px 4px 2px;
     2948}
     2949
     2950
    29452951/* find posts */
    29462952.find-box {
Note: See TracChangeset for help on using the changeset viewer.