Ticket #29169: 29169.patch
| File 29169.patch, 1.2 KB (added by , 12 years ago) |
|---|
-
src/wp-admin/includes/class-wp-media-list-table.php
33 33 } 34 34 35 35 public function prepare_items() { 36 global $ lost, $wp_query, $post_mime_types, $avail_post_mime_types, $mode;36 global $wp_query, $post_mime_types, $avail_post_mime_types, $mode; 37 37 38 38 $q = $_REQUEST; 39 39 40 if ( !empty( $lost ) ) 41 $q['post__in'] = implode( ',', $lost ); 40 if ( ! empty( $q['lost'] ) ) { 41 $q['post__in'] = wp_parse_id_list( $q['lost'] ); 42 } 42 43 43 44 list( $post_mime_types, $avail_post_mime_types ) = wp_edit_attachments_query( $q ); 44 45 -
src/wp-admin/upload.php
102 102 ) 103 103 " ); 104 104 105 $_REQUEST['detached'] = 1; 105 if ( $lost ) { 106 $location = add_query_arg( 'lost', implode( ',', $lost ), $location ); 107 } 106 108 break; 107 109 case 'attach': 108 110 $parent_id = (int) $_REQUEST['found_post_id'];