Changeset 3919 for branches/plugin/bbp-includes/bbp-user-functions.php
- Timestamp:
- 05/22/2012 09:58:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/plugin/bbp-includes/bbp-user-functions.php ¶
r3918 r3919 433 433 * @uses bbp_get_favorites_link() To get the favorites page link 434 434 * @uses bbp_get_topic_permalink() To get the topic permalink 435 * @uses wp_ redirect() To redirect to the url435 * @uses wp_safe_redirect() To redirect to the url 436 436 */ 437 437 function bbp_favorites_handler() { … … 502 502 } 503 503 504 wp_ redirect( $redirect );504 wp_safe_redirect( $redirect ); 505 505 506 506 // For good measure … … 750 750 * @uses bbp_get_subscription_link() To get the subscription page link 751 751 * @uses bbp_get_topic_permalink() To get the topic permalink 752 * @uses wp_ redirect() To redirect to the url752 * @uses wp_safe_redirect() To redirect to the url 753 753 */ 754 754 function bbp_subscriptions_handler() { … … 818 818 } 819 819 820 wp_ redirect( $redirect );820 wp_safe_redirect( $redirect ); 821 821 822 822 // For good measure … … 849 849 * @uses delete_option() To delete the displayed user's email id option 850 850 * @uses bbp_get_user_profile_edit_url() To get the edit profile url 851 * @uses wp_ redirect() To redirect to the url851 * @uses wp_safe_redirect() To redirect to the url 852 852 * @uses check_admin_referer() To verify the nonce and check the referer 853 853 * @uses current_user_can() To check if the current user can edit the user … … 896 896 delete_option( $user_id . '_new_email' ); 897 897 898 wp_ redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) );898 wp_safe_redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) ); 899 899 exit; 900 900 } … … 903 903 904 904 delete_option( $user_id . '_new_email' ); 905 wp_ redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) );905 wp_safe_redirect( add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $user_id ) ) ); 906 906 exit; 907 907 … … 962 962 $redirect = add_query_arg( array( 'updated' => 'true' ), bbp_get_user_profile_edit_url( $edit_user ) ); 963 963 964 wp_ redirect( $redirect );964 wp_safe_redirect( $redirect ); 965 965 exit; 966 966 }
Note: See TracChangeset
for help on using the changeset viewer.