Changeset 9471 for trunk/src/bp-xprofile/bp-xprofile-functions.php
- Timestamp:
- 02/10/2015 02:49:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-functions.php
r9351 r9471 218 218 */ 219 219 function xprofile_insert_field( $args = '' ) { 220 global $bp;221 220 222 221 $r = wp_parse_args( $args, array( … … 240 239 241 240 // Check this is a valid field type 242 if ( ! in_array( $r['type'], (array) $bp->profile->field_types ) ) {241 if ( ! in_array( $r['type'], (array) buddypress()->profile->field_types ) ) { 243 242 return false; 244 243 } … … 1022 1021 */ 1023 1022 function bp_xprofile_get_visibility_levels() { 1024 global $bp;1025 1023 1026 1024 /** … … 1031 1029 * @param array $visibility_levels Array of visibility levels. 1032 1030 */ 1033 return apply_filters( 'bp_xprofile_get_visibility_levels', $bp->profile->visibility_levels );1031 return apply_filters( 'bp_xprofile_get_visibility_levels', buddypress()->profile->visibility_levels ); 1034 1032 } 1035 1033
Note: See TracChangeset
for help on using the changeset viewer.