diff --git a/src/wp-activate.php b/src/wp-activate.php index 5150c29..07bd456 100644 --- a/src/wp-activate.php +++ b/src/wp-activate.php @@ -99,7 +99,7 @@ get_header( 'wp-activate' );
'; - if ( $signup->domain . $signup->path == '' ) { + if ( '' == $signup->domain . $signup->path ) { printf( /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */ __( 'Your account has been activated. You may now log in to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.' ), @@ -137,7 +137,7 @@ get_header( 'wp-activate' ); $cronhooks ) { $schedule = $v['schedule']; - if ( $schedule != false ) { + if ( false != $schedule ) { $new_args = array( $timestamp, $schedule, $hook, $v['args'] ); call_user_func_array( 'wp_reschedule_event', $new_args ); } diff --git a/src/wp-login.php b/src/wp-login.php index 4453f82..b2e118e 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -441,7 +441,7 @@ if ( defined( 'RELOCATE' ) && RELOCATE ) { // Move flag is set } $url = dirname( set_url_scheme( 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ) ); - if ( $url != get_option( 'siteurl' ) ) { + if ( get_option( 'siteurl' ) != $url ) { update_option( 'siteurl', $url ); } } @@ -949,7 +949,7 @@ switch ( $action ) { exit; } - if ( ( empty( $redirect_to ) || $redirect_to == 'wp-admin/' || $redirect_to == admin_url() ) ) { + if ( ( empty( $redirect_to ) || 'wp-admin/' == $redirect_to || admin_url() == $redirect_to ) ) { // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile. if ( is_multisite() && ! get_active_blog_for_user( $user->ID ) && ! is_super_admin( $user->ID ) ) { $redirect_to = user_admin_url(); diff --git a/src/wp-mail.php b/src/wp-mail.php index 977ed0f..f64c7a5 100644 --- a/src/wp-mail.php +++ b/src/wp-mail.php @@ -101,7 +101,7 @@ for ( $i = 1; $i <= $count; $i++ ) { $content_transfer_encoding = explode( ';', $content_transfer_encoding ); $content_transfer_encoding = $content_transfer_encoding[0]; } - if ( ( $content_type == 'multipart/alternative' ) && ( false !== strpos( $line, 'boundary="' ) ) && ( '' == $boundary ) ) { + if ( ( 'multipart/alternative' == $content_type ) && ( false !== strpos( $line, 'boundary="' ) ) && ( '' == $boundary ) ) { $boundary = trim( $line ); $boundary = explode( '"', $boundary ); $boundary = $boundary[1]; @@ -162,7 +162,7 @@ for ( $i = 1; $i <= $count; $i++ ) { $subject = trim( $subject ); - if ( $content_type == 'multipart/alternative' ) { + if ( 'multipart/alternative' == $content_type ) { $content = explode( '--' . $boundary, $content ); $content = $content[2]; @@ -212,7 +212,7 @@ for ( $i = 1; $i <= $count; $i++ ) { $post_title = xmlrpc_getposttitle( $content ); - if ( $post_title == '' ) { + if ( '' == $post_title ) { $post_title = $subject; } diff --git a/src/wp-signup.php b/src/wp-signup.php index cecaf98..57ce56a 100644 --- a/src/wp-signup.php +++ b/src/wp-signup.php @@ -573,9 +573,9 @@ function signup_user( $user_name = '', $user_email = '', $errors = '' ) {- + - + /> @@ -898,9 +898,9 @@ if ( current_user_can( 'manage_network' ) ) { $newblogname = isset( $_GET['new'] ) ? strtolower( preg_replace( '/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'] ) ) : null; $current_user = wp_get_current_user(); -if ( $active_signup == 'none' ) { +if ( 'none' == $active_signup ) { _e( 'Registration has been disabled.' ); -} elseif ( $active_signup == 'blog' && ! is_user_logged_in() ) { +} elseif ( 'blog' == $active_signup && ! is_user_logged_in() ) { $login_url = wp_login_url( network_site_url( 'wp-signup.php' ) ); /* translators: %s: login URL */ printf( __( 'You must first log in, and then you can create a new site.' ), $login_url ); @@ -908,14 +908,14 @@ if ( $active_signup == 'none' ) { $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; switch ( $stage ) { case 'validate-user-signup': - if ( $active_signup == 'all' || $_POST['signup_for'] == 'blog' && $active_signup == 'blog' || $_POST['signup_for'] == 'user' && $active_signup == 'user' ) { + if ( 'all' == $active_signup || 'blog' == $_POST['signup_for'] && 'blog' == $active_signup || 'user' == $_POST['signup_for'] && 'user' == $active_signup ) { validate_user_signup(); } else { _e( 'User registration has been disabled.' ); } break; case 'validate-blog-signup': - if ( $active_signup == 'all' || $active_signup == 'blog' ) { + if ( 'all' == $active_signup || 'blog' == $active_signup ) { validate_blog_signup(); } else { _e( 'Site registration has been disabled.' ); @@ -933,11 +933,11 @@ if ( $active_signup == 'none' ) { * @since 3.0.0 */ do_action( 'preprocess_signup_form' ); - if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) { + if ( is_user_logged_in() && ( 'all' == $active_signup || 'blog' == $active_signup ) ) { signup_another_blog( $newblogname ); - } elseif ( ! is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'user' ) ) { + } elseif ( ! is_user_logged_in() && ( 'all' == $active_signup || 'user' == $active_signup ) ) { signup_user( $newblogname, $user_email ); - } elseif ( ! is_user_logged_in() && ( $active_signup == 'blog' ) ) { + } elseif ( ! is_user_logged_in() && ( 'blog' == $active_signup ) ) { _e( 'Sorry, new registrations are not allowed at this time.' ); } else { _e( 'You are logged in already. No need to register again!' ); @@ -946,7 +946,7 @@ if ( $active_signup == 'none' ) { if ( $newblogname ) { $newblog = get_blogaddress_by_name( $newblogname ); - if ( $active_signup == 'blog' || $active_signup == 'all' ) { + if ( 'blog' == $active_signup || 'all' == $active_signup ) { /* translators: %s: site address */ printf( '
' . __( 'The site you were looking for, %s, does not exist, but you can create it now!' ) . '
',