Changeset 48956 for branches/5.5
- Timestamp:
- 09/07/2020 01:05:15 PM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-admin/includes/ajax-actions.php
r48589 r48956 2605 2605 2606 2606 $msg = false; 2607 2607 2608 switch ( $_POST['do'] ) { 2608 2609 case 'save': 2609 2610 $msg = wp_save_image( $attachment_id ); 2610 if ( $msg->error) {2611 if ( ! empty( $msg->error ) ) { 2611 2612 wp_send_json_error( $msg ); 2612 2613 } … … 2626 2627 $html = ob_get_clean(); 2627 2628 2628 if ( $msg->error) {2629 if ( ! empty( $msg->error ) ) { 2629 2630 wp_send_json_error( 2630 2631 array(
Note: See TracChangeset
for help on using the changeset viewer.