Make WordPress Core


Ignore:
Timestamp:
01/09/2020 12:53:29 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison and Yoda conditions in the root directory files.

Props pikamander2.
Fixes #48965.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-signup.php

    r46696 r47054  
    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 {
     
    642642    }
    643643
    644     if ( 'blog' == $_POST['signup_for'] ) {
     644    if ( 'blog' === $_POST['signup_for'] ) {
    645645        signup_blog( $user_name, $user_email );
    646646        return false;
Note: See TracChangeset for help on using the changeset viewer.