WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/12/2015 05:47:16 PM (6 years ago)
Author:
wonderboymusic
Message:

$status shouldn't be loosely compared to true in wp_xmlrpc_server::wp_deleteComment().
$initial shouldn't be loosely compared to true in get_calendar().
current_user_can() shouldn't be loosely compared to false in kses_init()
$get_all shouldn't be loosely compared to true in get_blog_details().
is_array() and in_array() shouldn't be loosely compared in wpmu_validate_user_signup().
$result should by strictly compared in check_ajax_referer().
wp_verify_nonce() should by strictly compared in _show_post_preview().
is_user_logged_in() should not be loosly compared against false in wp-signup.php.

See #32444.

File:
1 edited

Legend:

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

    r30662 r32733  
    88require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    99
    10 if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) {
     10if ( is_array( get_site_option( 'illegal_names' )) && isset( $_GET[ 'new' ] ) && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) ) {
    1111    wp_redirect( network_home_url() );
    1212    die();
     
    701701            if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) )
    702702                signup_another_blog($newblogname);
    703             elseif ( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) )
     703            elseif ( ! is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'user' ) )
    704704                signup_user( $newblogname, $user_email );
    705             elseif ( is_user_logged_in() == false && ( $active_signup == 'blog' ) )
     705            elseif ( ! is_user_logged_in() && ( $active_signup == 'blog' ) )
    706706                _e( 'Sorry, new registrations are not allowed at this time.' );
    707707            else
Note: See TracChangeset for help on using the changeset viewer.