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-xprofile/bp-xprofile-admin.php

    r9298 r9315  
    4444        xprofile_admin_manage_field( $_GET['group_id'] );
    4545
    46     else if ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && isset( $_GET['field_id'] ) && 'edit_field' == $_GET['mode'] )
     46    elseif ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && isset( $_GET['field_id'] ) && 'edit_field' == $_GET['mode'] )
    4747        xprofile_admin_manage_field( $_GET['group_id'], $_GET['field_id'] );
    4848
    49     else if ( isset( $_GET['mode'] ) && isset( $_GET['field_id'] ) && 'delete_field' == $_GET['mode'] )
     49    elseif ( isset( $_GET['mode'] ) && isset( $_GET['field_id'] ) && 'delete_field' == $_GET['mode'] )
    5050        xprofile_admin_delete_field( $_GET['field_id'], 'field');
    5151
    52     else if ( isset( $_GET['mode'] ) && isset( $_GET['option_id'] ) && 'delete_option' == $_GET['mode'] )
     52    elseif ( isset( $_GET['mode'] ) && isset( $_GET['option_id'] ) && 'delete_option' == $_GET['mode'] )
    5353        xprofile_admin_delete_field( $_GET['option_id'], 'option' );
    5454
    55     else if ( isset( $_GET['mode'] ) && 'add_group' == $_GET['mode'] )
     55    elseif ( isset( $_GET['mode'] ) && 'add_group' == $_GET['mode'] )
    5656        xprofile_admin_manage_group();
    5757
    58     else if ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && 'delete_group' == $_GET['mode'] )
     58    elseif ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && 'delete_group' == $_GET['mode'] )
    5959        xprofile_admin_delete_group( $_GET['group_id'] );
    6060
    61     else if ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && 'edit_group' == $_GET['mode'] )
     61    elseif ( isset( $_GET['mode'] ) && isset( $_GET['group_id'] ) && 'edit_group' == $_GET['mode'] )
    6262        xprofile_admin_manage_group( $_GET['group_id'] );
    6363
Note: See TracChangeset for help on using the changeset viewer.