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-activity/bp-activity-actions.php

    r9308 r9315  
    9292
    9393    // Set redirect to users' activity stream
    94     } else if ( ! empty( $activity->user_id ) ) {
     94    } elseif ( ! empty( $activity->user_id ) ) {
    9595        $redirect = bp_core_get_user_domain( $activity->user_id, $activity->user_nicename, $activity->user_login ) . bp_get_activity_slug() . '/' . $activity->id . '/';
    9696    }
     
    340340
    341341    // Post to groups object
    342     } else if ( 'groups' == $object && bp_is_active( 'groups' ) ) {
     342    } elseif ( 'groups' == $object && bp_is_active( 'groups' ) ) {
    343343        if ( (int) $item_id ) {
    344344            $activity_id = groups_post_update( array( 'content' => $content, 'group_id' => $item_id ) );
     
    812812
    813813    // Unpublishing a previously published post.
    814     } else if ( 'publish' === $old_status ) {
     814    } elseif ( 'publish' === $old_status ) {
    815815        // Some form of pending status - only remove the activity entry
    816816        bp_activity_post_type_unpublish( $post->ID, $post );
Note: See TracChangeset for help on using the changeset viewer.