Preserve context when searching in the media upload form. Props SergeyBiryukov. fixes #20856
git-svn-id: https://develop.svn.wordpress.org/trunk@21008 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
a6d17b5f9a
commit
d01ad14732
@ -1792,6 +1792,7 @@ function media_upload_library_form($errors) {
|
||||
<input type="hidden" name="tab" value="<?php echo esc_attr( $tab ); ?>" />
|
||||
<input type="hidden" name="post_id" value="<?php echo (int) $post_id; ?>" />
|
||||
<input type="hidden" name="post_mime_type" value="<?php echo isset( $_GET['post_mime_type'] ) ? esc_attr( $_GET['post_mime_type'] ) : ''; ?>" />
|
||||
<input type="hidden" name="context" value="<?php echo isset( $_GET['context'] ) ? esc_attr( $_GET['context'] ) : ''; ?>" />
|
||||
|
||||
<p id="media-search" class="search-box">
|
||||
<label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label>
|
||||
|
Loading…
Reference in New Issue
Block a user