Preserve context when searching in the media upload form. Props SergeyBiryukov. fixes #20856
git-svn-id: http://core.svn.wordpress.org/trunk@21008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
53b7eae7dd
commit
6e030d2ed4
|
@ -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="tab" value="<?php echo esc_attr( $tab ); ?>" />
|
||||||
<input type="hidden" name="post_id" value="<?php echo (int) $post_id; ?>" />
|
<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="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">
|
<p id="media-search" class="search-box">
|
||||||
<label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label>
|
<label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label>
|
||||||
|
|
Loading…
Reference in New Issue