Coding Standards: Use strict comparison and Yoda conditions in the root directory files.
Props pikamander2. Fixes #48965. Built from https://develop.svn.wordpress.org/trunk@47054 git-svn-id: http://core.svn.wordpress.org/trunk@46854 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -189,7 +189,7 @@ function show_blog_form( $blogname = '', $blog_title = '', $errors = '' ) {
|
||||
|
||||
$blog_public_on_checked = '';
|
||||
$blog_public_off_checked = '';
|
||||
if ( isset( $_POST['blog_public'] ) && '0' == $_POST['blog_public'] ) {
|
||||
if ( isset( $_POST['blog_public'] ) && '0' === $_POST['blog_public'] ) {
|
||||
$blog_public_off_checked = 'checked="checked"';
|
||||
} else {
|
||||
$blog_public_on_checked = 'checked="checked"';
|
||||
@@ -641,7 +641,7 @@ function validate_user_signup() {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( 'blog' == $_POST['signup_for'] ) {
|
||||
if ( 'blog' === $_POST['signup_for'] ) {
|
||||
signup_blog( $user_name, $user_email );
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user