Ensure the nonce is available even if no media items exist or are un-attached. Fixes #13284.

git-svn-id: https://develop.svn.wordpress.org/trunk@14548 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-05-10 20:55:52 +00:00
parent e98ddd7bd6
commit 208fe21987
1 changed files with 1 additions and 1 deletions

View File

@ -261,6 +261,7 @@ unset($type_links);
</form>
<form id="posts-filter" action="" method="get">
<?php wp_nonce_field('bulk-media'); ?>
<?php if ( have_posts() || isset( $orphans ) ) { ?>
<div class="tablenav">
<?php
@ -300,7 +301,6 @@ if ( $page_links ) : ?>
<?php } ?>
</select>
<input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" />
<?php wp_nonce_field('bulk-media'); ?>
<?php
if ( !is_singular() && !isset($_GET['detached']) && !$is_trash ) {