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-groups/bp-groups-template.php

    r9308 r9315  
    234234        if ( 'invites' == $type ) {
    235235            $this->groups = groups_get_invites_for_user( $user_id, $this->pag_num, $this->pag_page, $exclude );
    236         } else if ( 'single-group' == $type ) {
     236        } elseif ( 'single-group' == $type ) {
    237237            $this->single_group = true;
    238238
     
    280280            $this->group_count       = (int) $this->groups['total'];
    281281            $this->groups            = $this->groups['groups'];
    282         } else if ( 'single-group' == $type ) {
     282        } elseif ( 'single-group' == $type ) {
    283283            if ( empty( $group->id ) ) {
    284284                $this->total_group_count = 0;
     
    711711        if ( 'public' == $group->status ) {
    712712            $type = __( "Public Group", "buddypress" );
    713         } else if ( 'hidden' == $group->status ) {
     713        } elseif ( 'hidden' == $group->status ) {
    714714            $type = __( "Hidden Group", "buddypress" );
    715         } else if ( 'private' == $group->status ) {
     715        } elseif ( 'private' == $group->status ) {
    716716            $type = __( "Private Group", "buddypress" );
    717717        } else {
     
    18631863            // Default to the current group first
    18641864            $group_id = $bp->groups->current_group->id;
    1865         } else if ( isset( $groups_template->group->id ) ) {
     1865        } elseif ( isset( $groups_template->group->id ) ) {
    18661866            // Then see if we're in the loop
    18671867            $group_id = $groups_template->group->id;
     
    29472947            if ( is_user_logged_in() && bp_group_is_invited() ) {
    29482948                $message = __( 'You must accept your pending invitation before you can access this private group.', 'buddypress' );
    2949             } else if ( is_user_logged_in() ) {
     2949            } elseif ( is_user_logged_in() ) {
    29502950                $message = __( 'This is a private group and you must request group membership in order to join.', 'buddypress' );
    29512951            } else {
Note: See TracChangeset for help on using the changeset viewer.