Changeset 3919
- Timestamp:
- 05/22/2012 09:58:26 AM (12 years ago)
- Location:
- branches/plugin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbp-admin/bbp-replies.php
r3824 r3919 494 494 * data, action and message 495 495 * @uses add_query_arg() To add custom args to the url 496 * @uses wp_ redirect() Redirect the page to custom url496 * @uses wp_safe_redirect() Redirect the page to custom url 497 497 */ 498 498 function toggle_reply() { … … 535 535 // Redirect back to the reply 536 536 $redirect = add_query_arg( $message, remove_query_arg( array( 'action', 'reply_id' ) ) ); 537 wp_ redirect( $redirect );537 wp_safe_redirect( $redirect ); 538 538 539 539 // For good measure -
branches/plugin/bbp-admin/bbp-topics.php
r3842 r3919 519 519 * data, action and message 520 520 * @uses add_query_arg() To add custom args to the url 521 * @uses wp_ redirect() Redirect the page to custom url521 * @uses wp_safe_redirect() Redirect the page to custom url 522 522 */ 523 523 function toggle_topic() { … … 579 579 // Redirect back to the topic 580 580 $redirect = add_query_arg( $message, remove_query_arg( array( 'action', 'topic_id' ) ) ); 581 wp_ redirect( $redirect );581 wp_safe_redirect( $redirect ); 582 582 583 583 // For good measure -
branches/plugin/bbp-includes/bbp-reply-functions.php
r3912 r3919 973 973 * @uses bbp_get_reply_url() To get the reply url 974 974 * @uses add_query_arg() To add custom args to the reply url 975 * @uses wp_ redirect() To redirect to the reply975 * @uses wp_safe_redirect() To redirect to the reply 976 976 * @uses bbPress::errors:add() To log the error messages 977 977 */ … … 1085 1085 1086 1086 // Redirect back to reply 1087 wp_ redirect( $reply_url );1087 wp_safe_redirect( $reply_url ); 1088 1088 1089 1089 // For good measure -
branches/plugin/bbp-includes/bbp-topic-functions.php
r3911 r3919 1018 1018 * topic ids and source topic's forum id 1019 1019 * @uses bbp_get_topic_permalink() To get the topic permalink 1020 * @uses wp_ redirect() To redirect to the topic link1020 * @uses wp_safe_redirect() To redirect to the topic link 1021 1021 */ 1022 1022 function bbp_merge_topic_handler() { … … 1209 1209 1210 1210 // Redirect back to new topic 1211 wp_ redirect( bbp_get_topic_permalink( $destination_topic->ID ) );1211 wp_safe_redirect( bbp_get_topic_permalink( $destination_topic->ID ) ); 1212 1212 1213 1213 // For good measure … … 1296 1296 * source topic ids and source topic's forum id 1297 1297 * @uses bbp_get_topic_permalink() To get the topic permalink 1298 * @uses wp_ redirect() To redirect to the topic link1298 * @uses wp_safe_redirect() To redirect to the topic link 1299 1299 */ 1300 1300 function bbp_split_topic_handler() { … … 1532 1532 1533 1533 // Redirect back to the topic 1534 wp_ redirect( bbp_get_topic_permalink( $destination_topic->ID ) );1534 wp_safe_redirect( bbp_get_topic_permalink( $destination_topic->ID ) ); 1535 1535 1536 1536 // For good measure … … 1598 1598 * @uses do_action() Calls actions based on the actions with associated args 1599 1599 * @uses is_wp_error() To check if the value retrieved is a {@link WP_Error} 1600 * @uses wp_ redirect() To redirect to the url1600 * @uses wp_safe_redirect() To redirect to the url 1601 1601 */ 1602 1602 function bbp_edit_topic_tag_handler() { … … 1831 1831 * @uses bbp_get_topic_permalink() To get the topic link 1832 1832 * @uses add_query_arg() To add args to the url 1833 * @uses wp_ redirect() To redirect to the topic1833 * @uses wp_safe_redirect() To redirect to the topic 1834 1834 * @uses bbPress::errors:add() To log the error messages 1835 1835 */ … … 1966 1966 } 1967 1967 1968 wp_ redirect( $redirect );1968 wp_safe_redirect( $redirect ); 1969 1969 1970 1970 // For good measure -
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.