Changeset 9315 for trunk/src/bp-groups/bp-groups-screens.php
- Timestamp:
- 01/08/2015 09:43:47 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-screens.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-screens.php
r9308 r9315 72 72 bp_core_redirect( $redirect_to ); 73 73 74 } else if ( bp_is_action_variable( 'reject' ) && is_numeric( $group_id ) ) {74 } elseif ( bp_is_action_variable( 'reject' ) && is_numeric( $group_id ) ) { 75 75 // Check the nonce 76 76 if ( !check_admin_referer( 'groups_reject_invite' ) ) … … 180 180 181 181 // Sticky a topic 182 else if ( bp_is_action_variable( 'stick', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) {182 elseif ( bp_is_action_variable( 'stick', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) { 183 183 // Check the nonce 184 184 check_admin_referer( 'bp_forums_stick_topic' ); … … 195 195 196 196 // Un-Sticky a topic 197 else if ( bp_is_action_variable( 'unstick', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) {197 elseif ( bp_is_action_variable( 'unstick', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) { 198 198 // Check the nonce 199 199 check_admin_referer( 'bp_forums_unstick_topic' ); … … 210 210 211 211 // Close a topic 212 else if ( bp_is_action_variable( 'close', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) {212 elseif ( bp_is_action_variable( 'close', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) { 213 213 // Check the nonce 214 214 check_admin_referer( 'bp_forums_close_topic' ); … … 225 225 226 226 // Open a topic 227 else if ( bp_is_action_variable( 'open', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) {227 elseif ( bp_is_action_variable( 'open', 2 ) && ( bp_is_item_admin() || bp_is_item_mod() ) ) { 228 228 // Check the nonce 229 229 check_admin_referer( 'bp_forums_open_topic' ); … … 240 240 241 241 // Delete a topic 242 else if ( empty( $user_is_banned ) && bp_is_action_variable( 'delete', 2 ) && !bp_action_variable( 3 ) ) {242 elseif ( empty( $user_is_banned ) && bp_is_action_variable( 'delete', 2 ) && !bp_action_variable( 3 ) ) { 243 243 // Fetch the topic 244 244 $topic = bp_forums_get_topic_details( $topic_id ); … … 265 265 266 266 // Editing a topic 267 else if ( empty( $user_is_banned ) && bp_is_action_variable( 'edit', 2 ) && !bp_action_variable( 3 ) ) {267 elseif ( empty( $user_is_banned ) && bp_is_action_variable( 'edit', 2 ) && !bp_action_variable( 3 ) ) { 268 268 // Fetch the topic 269 269 $topic = bp_forums_get_topic_details( $topic_id ); … … 293 293 294 294 // Delete a post 295 } else if ( empty( $user_is_banned ) && bp_is_action_variable( 'delete', 2 ) && $post_id = bp_action_variable( 4 ) ) {295 } elseif ( empty( $user_is_banned ) && bp_is_action_variable( 'delete', 2 ) && $post_id = bp_action_variable( 4 ) ) { 296 296 // Fetch the post 297 297 $post = bp_forums_get_post( $post_id ); … … 317 317 318 318 // Editing a post 319 } else if ( empty( $user_is_banned ) && bp_is_action_variable( 'edit', 2 ) && $post_id = bp_action_variable( 4 ) ) {319 } elseif ( empty( $user_is_banned ) && bp_is_action_variable( 'edit', 2 ) && $post_id = bp_action_variable( 4 ) ) { 320 320 321 321 // Fetch the post … … 380 380 if ( empty( $_POST['topic_title'] ) ) { 381 381 $error_message = __( 'Please provide a title for your forum topic.', 'buddypress' ); 382 } else if ( empty( $_POST['topic_text'] ) ) {382 } elseif ( empty( $_POST['topic_text'] ) ) { 383 383 $error_message = __( 'Forum posts cannot be empty. Please enter some text.', 'buddypress' ); 384 384 } … … 493 493 $message = __( 'You are not allowed to send or remove invites', 'buddypress' ); 494 494 $error = 'error'; 495 } else if ( BP_Groups_Member::check_for_membership_request( $friend_id, $group_id ) ) {495 } elseif ( BP_Groups_Member::check_for_membership_request( $friend_id, $group_id ) ) { 496 496 $message = __( 'The member requested to join the group', 'buddypress' ); 497 497 $error = 'error'; 498 } else if ( ! groups_uninvite_user( $friend_id, $group_id ) ) {498 } elseif ( ! groups_uninvite_user( $friend_id, $group_id ) ) { 499 499 $message = __( 'There was an error removing the invite', 'buddypress' ); 500 500 $error = 'error';
Note: See TracChangeset
for help on using the changeset viewer.