Changeset 3919 for branches/plugin/bbp-includes/bbp-topic-functions.php
- Timestamp:
- 05/22/2012 09:58:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.