Make WordPress Core

Ticket #19452: 19452.diff

File 19452.diff, 930 bytes (added by helenyhou, 13 years ago)

Add post_mime_type and detached for the media library

  • wp-admin/includes/class-wp-list-table.php

     
    209209                        echo '<input type="hidden" name="orderby" value="' . esc_attr( $_REQUEST['orderby'] ) . '" />';
    210210                if ( ! empty( $_REQUEST['order'] ) )
    211211                        echo '<input type="hidden" name="order" value="' . esc_attr( $_REQUEST['order'] ) . '" />';
     212                if ( ! empty( $_REQUEST['post_mime_type'] ) )
     213                        echo '<input type="hidden" name="post_mime_type" value="' . esc_attr( $_REQUEST['post_mime_type'] ) . '" />';
     214                if ( ! empty( $_REQUEST['detached'] ) )
     215                        echo '<input type="hidden" name="detached" value="' . esc_attr( $_REQUEST['detached'] ) . '" />';
    212216?>
    213217<p class="search-box">
    214218        <label class="screen-reader-text" for="<?php echo $input_id ?>"><?php echo $text; ?>:</label>