Check bulk-themes nonce before bulk delete. fixes #15922

git-svn-id: https://develop.svn.wordpress.org/trunk@17121 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-23 15:56:32 +00:00
parent 64e7465e1c
commit a0b579b5e4
1 changed files with 5 additions and 4 deletions

View File

@ -149,6 +149,7 @@ if ( $action ) {
require_once(ABSPATH . 'wp-admin/admin-footer.php');
exit;
} // Endif verify-delete
check_admin_referer('bulk-themes');
foreach ( $themes as $theme )
$delete_result = delete_theme( $theme );
wp_redirect( network_admin_url( 'themes.php?deleted=true' ) );