WordPress.org

Make WordPress Core

Ticket #48965: wp-signup.php.patch

File wp-signup.php.patch, 706 bytes (added by pikamander2, 22 months ago)

Use strict comparisons and yoda conditions

  • wp-signup.php

     
    189189
    190190                $blog_public_on_checked  = '';
    191191                $blog_public_off_checked = '';
    192         if ( isset( $_POST['blog_public'] ) && '0' == $_POST['blog_public'] ) {
     192        if ( isset( $_POST['blog_public'] ) && '0' === $_POST['blog_public'] ) {
    193193                $blog_public_off_checked = 'checked="checked"';
    194194        } else {
    195195                $blog_public_on_checked = 'checked="checked"';
     
    641641                return false;
    642642        }
    643643
    644         if ( 'blog' == $_POST['signup_for'] ) {
     644        if ( 'blog' === $_POST['signup_for'] ) {
    645645                signup_blog( $user_name, $user_email );
    646646                return false;
    647647        }