Changeset 4958
- Timestamp:
- 08/09/2011 07:32:28 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-classes.php
r4911 r4958 255 255 global $wpdb, $bp; 256 256 257 extract( $args );258 259 257 $defaults = array( 260 258 'id' => false, … … 270 268 'hide_sitewide' => false 271 269 ); 270 $params = wp_parse_args( $args, $defaults ); 271 extract( $params ); 272 272 273 273 $where_args = false; -
trunk/bp-xprofile/bp-xprofile-template.php
r4880 r4958 156 156 // Only show empty fields if we're on the Dashboard, or we're on a user's profile edit page, 157 157 // or this is a registration page 158 $hide_empty_fields = ( !is_network_admin() && !is_admin() && !bp_is_user_profile_edit() && !bp_is_register_page() );158 $hide_empty_fields_default = ( !is_network_admin() && !is_admin() && !bp_is_user_profile_edit() && !bp_is_register_page() ); 159 159 160 160 $defaults = array( 161 'user_id' => $bp->displayed_user->id,161 'user_id' => $bp->displayed_user->id, 162 162 'profile_group_id' => false, 163 163 'hide_empty_groups' => true, 164 'hide_empty_fields' => $hide_empty_fields ,164 'hide_empty_fields' => $hide_empty_fields_default, 165 165 'fetch_fields' => true, 166 166 'fetch_field_data' => true,
Note: See TracChangeset
for help on using the changeset viewer.