← All changes
|
src/includes/classes/custom-reg-fields-4bp.inc.php
+2
-2
260805
→
260917
View file →
| @@ -136,9 +136,9 @@ | ||
| 136 | 136 | do_action('ws_plugin__s2member_before_custom_profile_fields_4bp', get_defined_vars()); |
| 137 | 137 | |
| 138 | 138 | if(!$processed && in_array('profile', $GLOBALS['WS_PLUGIN__']['s2member']['o']['custom_reg_fields_4bp'])) |
| 139 | 139 | if(apply_filters('ws_plugin__s2member_custom_profile_fields_4bp_display', TRUE, get_defined_vars())) |
| 140 | - if(bp_is_user_profile() && bp_is_user_profile_edit() && (integer)bp_get_the_profile_group_id() === 1) | |
| 140 | + if(bp_is_user_profile() && bp_is_user_profile_edit() && (int)bp_get_the_profile_group_id() === 1) | |
| 141 | 141 | if(isset($bp->displayed_user->id) && ($user_id = $bp->displayed_user->id) && ($processed = TRUE)) |
| 142 | 142 | { |
| 143 | 143 | echo '<input type="hidden" name="ws_plugin__s2member_profile_4bp_save" id="ws-plugin--s2member-profile-4bp-save" value="'.esc_attr(wp_create_nonce('ws-plugin--s2member-profile-4bp-save')).'" />'."\n"; |
| 144 | 144 | |
| @@ -223,9 +223,9 @@ | ||
| 223 | 223 | do_action('ws_plugin__s2member_before_custom_profile_field_items_4bp', get_defined_vars()); |
| 224 | 224 | |
| 225 | 225 | if(!$processed && in_array('profile-view', $GLOBALS['WS_PLUGIN__']['s2member']['o']['custom_reg_fields_4bp'])) |
| 226 | 226 | if(apply_filters('ws_plugin__s2member_custom_profile_field_items_4bp_display', TRUE, get_defined_vars())) |
| 227 | - if(bp_is_user_profile() && !bp_is_user_profile_edit() && (integer)bp_get_the_profile_group_id() === 1) | |
| 227 | + if(bp_is_user_profile() && !bp_is_user_profile_edit() && (int)bp_get_the_profile_group_id() === 1) | |
| 228 | 228 | if(isset ($bp->displayed_user->id) && ($user_id = $bp->displayed_user->id) && ($processed = TRUE)) |
| 229 | 229 | { |
| 230 | 230 | foreach(array_keys(get_defined_vars()) as $__v) $__refs[$__v] =& $$__v; |
| 231 | 231 | do_action('ws_plugin__s2member_during_custom_profile_field_items_4bp_before', get_defined_vars()); |