Ticket #53411: 53411.diff
| File 53411.diff, 820 bytes (added by , 5 years ago) |
|---|
-
src/wp-admin/upload.php
148 148 break; 149 149 150 150 case 'trash': 151 if ( ! isset( $post_ids ) ) {151 if ( empty( $post_ids ) ) { 152 152 break; 153 153 } 154 154 foreach ( (array) $post_ids as $post_id ) { … … 169 169 ); 170 170 break; 171 171 case 'untrash': 172 if ( ! isset( $post_ids ) ) {172 if ( empty( $post_ids ) ) { 173 173 break; 174 174 } 175 175 foreach ( (array) $post_ids as $post_id ) { … … 184 184 $location = add_query_arg( 'untrashed', count( $post_ids ), $location ); 185 185 break; 186 186 case 'delete': 187 if ( ! isset( $post_ids ) ) {187 if ( empty( $post_ids ) ) { 188 188 break; 189 189 } 190 190 foreach ( (array) $post_ids as $post_id_del ) {