Make WordPress Core

Ticket #29169: 29169.patch

File 29169.patch, 1.2 KB (added by SergeyBiryukov, 12 years ago)
  • src/wp-admin/includes/class-wp-media-list-table.php

     
    3333        }
    3434
    3535        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;
    3737
    3838                $q = $_REQUEST;
    3939
    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                }
    4243
    4344                list( $post_mime_types, $avail_post_mime_types ) = wp_edit_attachments_query( $q );
    4445
  • src/wp-admin/upload.php

     
    102102                                )
    103103                        " );
    104104
    105                         $_REQUEST['detached'] = 1;
     105                        if ( $lost ) {
     106                                $location = add_query_arg( 'lost', implode( ',', $lost ), $location );
     107                        }
    106108                        break;
    107109                case 'attach':
    108110                        $parent_id = (int) $_REQUEST['found_post_id'];