Remove unused edit-site nonce fields from site-users and site-themes. props jeremyfelt, fixes #21277.

git-svn-id: http://core.svn.wordpress.org/trunk@21903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-18 23:06:22 +00:00
parent 80e443d0df
commit 087b6ace16
2 changed files with 1 additions and 5 deletions

View File

@ -172,7 +172,6 @@ if ( isset( $_GET['enabled'] ) ) {
<?php $wp_list_table->views(); ?>
<form method="post" action="site-themes.php?action=update-site">
<?php wp_nonce_field( 'edit-site' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
<?php $wp_list_table->display(); ?>

View File

@ -238,8 +238,7 @@ endif; ?>
<?php $wp_list_table->views(); ?>
<form method="post" action="site-users.php?action=update-site" class="site-users">
<?php wp_nonce_field( 'edit-site' ); ?>
<form method="post" action="site-users.php?action=update-site">
<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
<?php $wp_list_table->display(); ?>
@ -251,7 +250,6 @@ endif; ?>
<?php if ( current_user_can( 'promote_users' ) && apply_filters( 'show_network_site_users_add_existing_form', true ) ) : ?>
<h3 id="add-existing-user"><?php _e( 'Add Existing User' ); ?></h3>
<form action="site-users.php?action=adduser" id="adduser" method="post">
<?php wp_nonce_field( 'edit-site' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
<table class="form-table">
<tr>
@ -279,7 +277,6 @@ endif; ?>
<?php if ( current_user_can( 'create_users' ) && apply_filters( 'show_network_site_users_add_new_form', true ) ) : ?>
<h3 id="add-new-user"><?php _e( 'Add New User' ); ?></h3>
<form action="<?php echo network_admin_url('site-users.php?action=newuser'); ?>" id="newuser" method="post">
<?php wp_nonce_field( 'edit-site' ); ?>
<input type="hidden" name="id" value="<?php echo esc_attr( $id ) ?>" />
<table class="form-table">
<tr>