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-core/bp-core-catchuri.php

    r9308 r9315  
    671671        // and the current user is logged in. In this case we send to
    672672        // the members directory to avoid redirect loops
    673         } else if ( bp_is_register_page() && 'register' == $front_page_component && is_user_logged_in() ) {
     673        } elseif ( bp_is_register_page() && 'register' == $front_page_component && is_user_logged_in() ) {
    674674            $bp->canonical_stack['canonical_url'] = apply_filters( 'bp_loggedin_register_page_redirect_to', trailingslashit( bp_get_root_domain() . '/' . bp_get_members_root_slug() ) );
    675675        }
Note: See TracChangeset for help on using the changeset viewer.