Changeset 4961 for trunk/bp-groups/bp-groups-screens.php
- Timestamp:
- 08/10/2011 06:32:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-screens.php
r4844 r4961 509 509 if ( isset( $_POST['save'] ) ) { 510 510 $enable_forum = ( isset($_POST['group-show-forum'] ) ) ? 1 : 0; 511 511 512 512 // Checked against a whitelist for security 513 513 $allowed_status = apply_filters( 'groups_allowed_status', array( 'public', 'private', 'hidden' ) ); 514 514 $status = ( in_array( $_POST['group-status'], (array)$allowed_status ) ) ? $_POST['group-status'] : 'public'; 515 515 516 516 // Checked against a whitelist for security 517 517 $allowed_invite_status = apply_filters( 'groups_allowed_invite_status', array( 'members', 'mods', 'admins' ) ); … … 615 615 $user_id = bp_action_variable( 3 ); 616 616 $status = bp_action_variable( 2 ); 617 617 618 618 // Check the nonce first. 619 619 if ( !check_admin_referer( 'groups_promote_member' ) ) … … 653 653 if ( bp_is_action_variable( 'ban', 1 ) && is_numeric( bp_action_variable( 2 ) ) ) { 654 654 $user_id = bp_action_variable( 2 ); 655 655 656 656 // Check the nonce first. 657 657 if ( !check_admin_referer( 'groups_ban_member' ) ) … … 671 671 if ( bp_is_action_variable( 'unban', 1 ) && is_numeric( bp_action_variable( 2 ) ) ) { 672 672 $user_id = bp_action_variable( 2 ); 673 673 674 674 // Check the nonce first. 675 675 if ( !check_admin_referer( 'groups_unban_member' ) ) … … 689 689 if ( bp_is_action_variable( 'remove', 1 ) && is_numeric( bp_action_variable( 2 ) ) ) { 690 690 $user_id = bp_action_variable( 2 ); 691 691 692 692 // Check the nonce first. 693 693 if ( !check_admin_referer( 'groups_remove_member' ) )
Note: See TracChangeset
for help on using the changeset viewer.