mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
Coding Standards: Use strict comparison in some wp-admin files.
Props pikamander2, mukesh27, SergeyBiryukov. Fixes #49239. git-svn-id: https://develop.svn.wordpress.org/trunk@47785 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -17,7 +17,7 @@ if ( ! current_user_can( 'delete_site' ) ) {
|
||||
wp_die( __( 'Sorry, you are not allowed to delete this site.' ) );
|
||||
}
|
||||
|
||||
if ( isset( $_GET['h'] ) && '' != $_GET['h'] && false != get_option( 'delete_blog_hash' ) ) {
|
||||
if ( isset( $_GET['h'] ) && '' !== $_GET['h'] && false !== get_option( 'delete_blog_hash' ) ) {
|
||||
if ( hash_equals( get_option( 'delete_blog_hash' ), $_GET['h'] ) ) {
|
||||
wpmu_delete_blog( get_current_blog_id() );
|
||||
wp_die(
|
||||
@@ -42,7 +42,7 @@ require_once ABSPATH . 'wp-admin/admin-header.php';
|
||||
echo '<div class="wrap">';
|
||||
echo '<h1>' . esc_html( $title ) . '</h1>';
|
||||
|
||||
if ( isset( $_POST['action'] ) && 'deleteblog' == $_POST['action'] && isset( $_POST['confirmdelete'] ) && '1' == $_POST['confirmdelete'] ) {
|
||||
if ( isset( $_POST['action'] ) && 'deleteblog' === $_POST['action'] && isset( $_POST['confirmdelete'] ) && '1' === $_POST['confirmdelete'] ) {
|
||||
check_admin_referer( 'delete-blog' );
|
||||
|
||||
$hash = wp_generate_password( 20, false );
|
||||
|
||||
Reference in New Issue
Block a user