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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-10 20:55:52 +00:00
parent 4e6574f0ac
commit 51e54f5a0b
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 ) {