Remove unused edit-site nonce fields from site-users and site-themes. props jeremyfelt, fixes #21277.
git-svn-id: https://develop.svn.wordpress.org/trunk@21903 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3d6738c786
commit
73f5dd8a35
@ -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(); ?>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user