Changeset 11350
- Timestamp:
- 12/28/2016 09:54:03 PM (7 years ago)
- Location:
- trunk/src/bp-xprofile
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-template.php
r11258 r11350 257 257 * @since 1.1.0 258 258 * 259 * @return mixed|void259 * @return int 260 260 */ 261 261 function bp_get_the_profile_group_id() { … … 269 269 * @param int $id ID for the profile group. 270 270 */ 271 return apply_filters( 'bp_get_the_profile_group_id', $group->id );271 return (int) apply_filters( 'bp_get_the_profile_group_id', $group->id ); 272 272 } 273 273 … … 286 286 * @since 1.0.0 287 287 * 288 * @return mixed|void288 * @return string 289 289 */ 290 290 function bp_get_the_profile_group_name() { … … 315 315 * @since 1.1.0 316 316 * 317 * @return mixed|void317 * @return string 318 318 */ 319 319 function bp_get_the_profile_group_slug() { … … 344 344 * @since 1.0.0 345 345 * 346 * @return mixed|void346 * @return string 347 347 */ 348 348 function bp_get_the_profile_group_description() { … … 373 373 * @since 1.1.0 374 374 * 375 * @return mixed|void375 * @return string 376 376 */ 377 377 function bp_get_the_profile_group_edit_form_action() { … … 497 497 * @since 1.1.0 498 498 * 499 * @return mixed|void499 * @return int 500 500 */ 501 501 function bp_get_the_profile_field_id() { … … 509 509 * @param int $id ID for the profile field. 510 510 */ 511 return apply_filters( 'bp_get_the_profile_field_id', $field->id );511 return (int) apply_filters( 'bp_get_the_profile_field_id', $field->id ); 512 512 } 513 513 … … 526 526 * @since 1.0.0 527 527 * 528 * @return mixed|void528 * @return string 529 529 */ 530 530 function bp_get_the_profile_field_name() { … … 555 555 * @since 1.0.0 556 556 * 557 * @return mixed|void557 * @return string 558 558 */ 559 559 function bp_get_the_profile_field_value() { … … 588 588 * @since 1.1.0 589 589 * 590 * @return mixed|void590 * @return string 591 591 */ 592 592 function bp_get_the_profile_field_edit_value() { … … 641 641 * @since 1.1.0 642 642 * 643 * @return mixed|void643 * @return string 644 644 */ 645 645 function bp_get_the_profile_field_type() { … … 670 670 * @since 1.1.0 671 671 * 672 * @return mixed|void672 * @return string 673 673 */ 674 674 function bp_get_the_profile_field_description() { … … 699 699 * @since 1.1.0 700 700 * 701 * @return mixed|void701 * @return string 702 702 */ 703 703 function bp_get_the_profile_field_input_name() { … … 805 805 * @since 1.1.0 806 806 * 807 * @return mixed|void807 * @return bool 808 808 */ 809 809 function bp_get_the_profile_field_is_required() { … … 823 823 * @param bool $retval Whether or not the field is required. 824 824 */ 825 return apply_filters( 'bp_get_the_profile_field_is_required', (bool)$retval );825 return (bool) apply_filters( 'bp_get_the_profile_field_is_required', $retval ); 826 826 } 827 827 … … 840 840 * @since 1.6.0 841 841 * 842 * @return mixed|void842 * @return string 843 843 */ 844 844 function bp_get_the_profile_field_visibility_level() { … … 878 878 * @since 1.6.0 879 879 * 880 * @return mixed|void880 * @return string 881 881 */ 882 882 function bp_get_the_profile_field_visibility_level_label() { … … 946 946 * @type int $user_id ID of the user to get field data for. 947 947 * } 948 * @return mixed |void948 * @return mixed 949 949 */ 950 950 function bp_get_profile_field_data( $args = '' ) { … … 1089 1089 * 1090 1090 * @param bool $deprecated Deprecated boolean parameter. 1091 * @return mixed|void 1091 * 1092 * @return string|mixed 1092 1093 */ 1093 1094 function bp_profile_group_name( $deprecated = true ) { 1094 if ( ! $deprecated ) {1095 if ( ! $deprecated ) { 1095 1096 return bp_get_profile_group_name(); 1096 1097 } else { … … 1104 1105 * @since 1.0.0 1105 1106 * 1106 * @return mixed|void1107 * @return string 1107 1108 */ 1108 1109 function bp_get_profile_group_name() { … … 1150 1151 * @since 1.0.0 1151 1152 * 1152 * @return bool| mixed|void1153 * @return bool|string 1153 1154 */ 1154 1155 function bp_get_profile_last_updated() { … … 1185 1186 * @since 1.1.0 1186 1187 * 1187 * @return mixed|void1188 * @return int 1188 1189 */ 1189 1190 function bp_get_current_profile_group_id() { … … 1200 1201 * @since 1.1.0 1201 1202 * 1202 * @param string$profile_group_id Current profile group ID.1203 */ 1204 return apply_filters( 'bp_get_current_profile_group_id', $profile_group_id );1203 * @param int $profile_group_id Current profile group ID. 1204 */ 1205 return (int) apply_filters( 'bp_get_current_profile_group_id', $profile_group_id ); 1205 1206 } 1206 1207 … … 1219 1220 * @since 1.1.0 1220 1221 * 1221 * @return mixed|void1222 * @return string 1222 1223 */ 1223 1224 function bp_get_avatar_delete_link() { -
trunk/src/bp-xprofile/classes/class-bp-xprofile-user-admin.php
r11295 r11350 139 139 'normal', 140 140 'core', 141 array( 'profile_group_id' => absint( bp_get_the_profile_group_id()) )141 array( 'profile_group_id' => bp_get_the_profile_group_id() ) 142 142 ); 143 143 endwhile;
Note: See TracChangeset
for help on using the changeset viewer.