Make WordPress Core

Ticket #60074: 60074.diff

File 60074.diff, 946 bytes (added by mijotj, 12 months ago)

Patch added

  • src/wp-admin/async-upload.php

    diff --git a/src/wp-admin/async-upload.php b/src/wp-admin/async-upload.php
    index 864f2be654..fd7dfe22b3 100644
    a b if ( is_wp_error( $id ) ) { 
    116116        $message = sprintf(
    117117                '%s <strong>%s</strong><br />%s',
    118118                sprintf(
    119                         '<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">%s</button>',
     119                        '<a type="button" class="dismiss button-link">%s</a>',
    120120                        __( 'Dismiss' )
    121121                ),
    122122                sprintf(
  • src/wp-admin/css/media.css

    diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css
    index 5eea3ee167..07d14a3ee3 100644
    a b  
    257257        min-height: 50px;
    258258}
    259259
    260 .media-item .error-div button.dismiss {
     260.media-item .error-div button.dismiss,
     261.media-item .error-div a.dismiss {
    261262        float: right;
    262263        margin: 0 10px 0 15px;
    263264}