Ticket #22655: 22655.2.diff
| File 22655.2.diff, 1.9 KB (added by , 14 years ago) |
|---|
-
wp-admin/includes/ajax-actions.php
1602 1602 $wp_filetype = wp_check_filetype_and_ext( $_FILES['async-upload']['tmp_name'], $_FILES['async-upload']['name'], false ); 1603 1603 if ( ! wp_match_mime_types( 'image', $wp_filetype['type'] ) ) { 1604 1604 echo json_encode( array( 1605 'success' => false, 1606 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 1607 'filename' => $_FILES['async-upload']['name'], 1605 'success' => false, 1606 'data' => array( 1607 'message' => __( 'The uploaded file is not a valid image. Please try again.' ), 1608 'filename' => $_FILES['async-upload']['name'], 1609 ) 1608 1610 ) ); 1609 1611 1610 1612 wp_die(); … … 1615 1617 1616 1618 if ( is_wp_error( $attachment_id ) ) { 1617 1619 echo json_encode( array( 1618 'success' => false, 1619 'message' => $attachment_id->get_error_message(), 1620 'filename' => $_FILES['async-upload']['name'], 1620 'success' => false, 1621 'data' => array( 1622 'message' => $attachment_id->get_error_message(), 1623 'filename' => $_FILES['async-upload']['name'], 1624 ) 1621 1625 ) ); 1622 1626 1623 1627 wp_die(); -
wp-includes/css/media-views.css
790 790 791 791 .media-uploader-status { 792 792 position: relative; 793 margin: 0 auto; 793 794 padding-bottom: 10px; 795 max-width: 400px; 794 796 } 795 797 796 798 .media-sidebar .media-uploader-status { … … 842 844 } 843 845 844 846 .upload-errors .upload-error { 845 max-width: 400px;846 847 margin: 8px auto 0 auto; 847 848 padding: 8px; 848 849 border: 1px #c00 solid; … … 868 869 display: block; 869 870 padding-top: 8px; 870 871 color: #b44; 872 word-wrap: break-word; 871 873 } 872 874 873 875 .uploader-window {