From dfc9923e59be80159fd7620f53e8beeede88b009 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 19 May 2010 05:12:01 +0000 Subject: [PATCH] Cast global_terms_enabled to bool before doing checked() so that FALSE matches as well as 0. git-svn-id: http://svn.automattic.com/wordpress/trunk@14734 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/ms-edit.php | 8 ++++---- wp-admin/ms-options.php | 4 ++-- wp-admin/ms-sites.php | 4 ++-- wp-admin/ms-users.php | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-admin/ms-edit.php b/wp-admin/ms-edit.php index 42532cd8a..c2ad77937 100644 --- a/wp-admin/ms-edit.php +++ b/wp-admin/ms-edit.php @@ -141,7 +141,7 @@ switch ( $_GET['action'] ) { exit(); break; case 'addblog': - check_admin_referer( 'add-blog' ); + check_admin_referer( 'add-blog', '_wpnonce_add-blog' ); if ( ! current_user_can( 'manage_sites' ) ) wp_die( __( 'You do not have permission to access this page.' ) ); @@ -325,7 +325,7 @@ switch ( $_GET['action'] ) { case 'allblogs': if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) { - check_admin_referer( 'bulk-ms-sites' ); + check_admin_referer( 'bulk-ms-sites', '_wpnonce_bulk-ms-sites' ); if ( ! current_user_can( 'manage_sites' ) ) wp_die( __( 'You do not have permission to access this page.' ) ); @@ -507,7 +507,7 @@ switch ( $_GET['action'] ) { wp_die( __( 'You do not have permission to access this page.' ) ); if ( isset( $_POST['doaction']) || isset($_POST['doaction2'] ) ) { - check_admin_referer( 'bulk-ms-users' ); + check_admin_referer( 'bulk-ms-users', '_wpnonce_bulk-ms-users' ); if ( $_GET['action'] != -1 || $_POST['action2'] != -1 ) $doaction = $_POST['action'] != -1 ? $_POST['action'] : $_POST['action2']; @@ -590,7 +590,7 @@ switch ( $_GET['action'] ) { break; case 'adduser': - check_admin_referer( 'add-user' ); + check_admin_referer( 'add-user', '_wpnonce_add-user' ); if ( ! current_user_can( 'manage_network_users' ) ) wp_die( __( 'You do not have permission to access this page.' ) ); diff --git a/wp-admin/ms-options.php b/wp-admin/ms-options.php index aa146aa1a..6c17e83ab 100644 --- a/wp-admin/ms-options.php +++ b/wp-admin/ms-options.php @@ -55,8 +55,8 @@ if (isset($_GET['updated'])) { -
-
+
+
diff --git a/wp-admin/ms-sites.php b/wp-admin/ms-sites.php index c67e9d28c..ed7268879 100644 --- a/wp-admin/ms-sites.php +++ b/wp-admin/ms-sites.php @@ -418,7 +418,7 @@ switch ( $action ) { - + @@ -679,7 +679,7 @@ switch ( $action ) {

- + diff --git a/wp-admin/ms-users.php b/wp-admin/ms-users.php index f422466f7..60e4261d5 100644 --- a/wp-admin/ms-users.php +++ b/wp-admin/ms-users.php @@ -134,7 +134,7 @@ if ( isset( $_GET['updated'] ) && $_GET['updated'] == 'true' && ! empty( $_GET[' - + @@ -355,7 +355,7 @@ if ( apply_filters( 'show_adduser_fields', true ) ) :

- +