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-admin.php

    r9308 r9315  
    103103        bp_core_redirect( $redirect_to );
    104104
    105     } else if ( 'edit' == $doaction && ! empty( $_GET['gid'] ) ) {
     105    } elseif ( 'edit' == $doaction && ! empty( $_GET['gid'] ) ) {
    106106        // columns screen option
    107107        add_screen_option( 'layout_columns', array( 'default' => 2, 'max' => 2, ) );
     
    309309                                if ( 'admin' == $existing_role || 'mod' == $existing_role ) {
    310310                                    $result = groups_demote_member( $user_id, $group_id );
    311                                 } else if ( 'banned' == $existing_role ) {
     311                                } elseif ( 'banned' == $existing_role ) {
    312312                                    $result = groups_unban_member( $user_id, $group_id );
    313313                                }
     
    420420
    421421    // Display the group deletion confirmation screen
    422     } else if ( 'delete' == $doaction && ! empty( $_GET['gid'] ) ) {
     422    } elseif ( 'delete' == $doaction && ! empty( $_GET['gid'] ) ) {
    423423        bp_groups_admin_delete();
    424424
     
    457457        if ( ! empty( $errors ) ) {
    458458            $messages[] = __( 'An error occurred when trying to update your group details.', 'buddypress' );
    459         } else if ( ! empty( $updated ) ) {
     459        } elseif ( ! empty( $updated ) ) {
    460460            $messages[] = __( 'The group has been updated successfully.', 'buddypress' );
    461461        }
Note: See TracChangeset for help on using the changeset viewer.