WordPress.org

Make WordPress Core

Changeset 21008


Ignore:
Timestamp:
06/06/2012 04:00:08 PM (6 years ago)
Author:
ryan
Message:

Preserve context when searching in the media upload form. Props SergeyBiryukov. fixes #20856

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r20826 r21008  
    17931793<input type="hidden" name="post_id" value="<?php echo (int) $post_id; ?>" />
    17941794<input type="hidden" name="post_mime_type" value="<?php echo isset( $_GET['post_mime_type'] ) ? esc_attr( $_GET['post_mime_type'] ) : ''; ?>" />
     1795<input type="hidden" name="context" value="<?php echo isset( $_GET['context'] ) ? esc_attr( $_GET['context'] ) : ''; ?>" />
    17951796
    17961797<p id="media-search" class="search-box">
Note: See TracChangeset for help on using the changeset viewer.