Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/08/2015 09:43:47 PM (7 years ago)
Author:
johnjamesjacoby
Message:

s/else if/elseif/

"The keyword elseif should be used instead of else if so that all control keywords look like single words."

Props wonderboymusic, hnla. See #6097.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/bp-members-functions.php

    r9273 r9315  
    19391939        // If a user ID is found, this may be a legacy signup, or one
    19401940        // created locally for backward compatibility. Process it.
    1941         } else if ( $key == wp_hash( $user_id ) ) {
     1941        } elseif ( $key == wp_hash( $user_id ) ) {
    19421942            // Change the user's status so they become active
    19431943            if ( ! $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->users} SET user_status = 0 WHERE ID = %d", $user_id ) ) ) {
     
    23972397    if ( isset( $_GLOBALS['pagenow'] ) && false !== strpos( $GLOBALS['pagenow'], 'wp-login.php' ) ) {
    23982398        $is_login = true;
    2399     } else if ( isset( $_SERVER['SCRIPT_NAME'] ) && false !== strpos( $_SERVER['SCRIPT_NAME'], 'wp-login.php' ) ) {
     2399    } elseif ( isset( $_SERVER['SCRIPT_NAME'] ) && false !== strpos( $_SERVER['SCRIPT_NAME'], 'wp-login.php' ) ) {
    24002400        $is_login = true;
    24012401    }
Note: See TracChangeset for help on using the changeset viewer.