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-messages/bp-messages-screens.php

    r9216 r9315  
    211211                bp_core_add_message( __('Notice deactivated.', 'buddypress') );
    212212            }
    213         } else if ( bp_is_action_variable( 'activate', 0 ) ) {
     213        } elseif ( bp_is_action_variable( 'activate', 0 ) ) {
    214214            if ( !$notice->activate() ) {
    215215                bp_core_add_message( __('There was a problem activating that notice.', 'buddypress'), 'error' );
     
    217217                bp_core_add_message( __('Notice activated.', 'buddypress') );
    218218            }
    219         } else if ( bp_is_action_variable( 'delete' ) ) {
     219        } elseif ( bp_is_action_variable( 'delete' ) ) {
    220220            if ( !$notice->delete() ) {
    221221                bp_core_add_message( __('There was a problem deleting that notice.', 'buddypress'), 'buddypress' );
Note: See TracChangeset for help on using the changeset viewer.