Changeset 3369 for trunk/bp-xprofile.php
- Timestamp:
- 11/07/2010 12:20:02 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r3365 r3369 175 175 global $bp; 176 176 177 do_action( 'xprofile_screen_display_profile', $_GET['new'] ); 177 $new = ''; 178 if ( isset( $_GET['new'] ) ) 179 $new = $_GET['new']; 180 181 do_action( 'xprofile_screen_display_profile', $new ); 178 182 bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'members/single/home' ) ); 179 183 } … … 345 349 global $bp; 346 350 347 if ( $bp->profile->slug != $bp->current_component || 'change-avatar' != $bp->current_action || 'delete-avatar' != $bp->action_variables[0] )351 if ( $bp->profile->slug != $bp->current_component || 'change-avatar' != $bp->current_action || !isset( $bp->action_variables[0] ) || 'delete-avatar' != $bp->action_variables[0] ) 348 352 return false; 349 353
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)