Changeset 1779 for trunk/bp-xprofile.php
- Timestamp:
- 09/03/2009 06:59:40 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile.php
r1760 r1779 459 459 bp_core_add_message( __( 'There was a problem deleting that avatar, please try again.', 'buddypress' ), 'error' ); 460 460 461 bp_core_redirect( $_SERVER['HTTP_REFERER']);461 bp_core_redirect( wp_get_referer() ); 462 462 } 463 463 add_action( 'wp', 'xprofile_action_delete_avatar', 3 ); … … 522 522 } 523 523 524 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp->wire->slug ) ) {524 if ( !strpos( wp_get_referer(), $bp->wire->slug ) ) { 525 525 bp_core_redirect( $bp->displayed_user->domain ); 526 526 } else { … … 564 564 } 565 565 566 if ( !strpos( $_SERVER['HTTP_REFERER'], $bp->wire->slug ) ) {566 if ( !strpos( wp_get_referer(), $bp->wire->slug ) ) { 567 567 bp_core_redirect( $bp->displayed_user->domain ); 568 568 } else {
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)