Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2012 09:58:26 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Redirects:

  • Always use wp_safe_redirect() in bbPress.
  • Nothing should/will redirect off-site.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-admin/bbp-topics.php

    r3842 r3919  
    519519         *                    data, action and message
    520520         * @uses add_query_arg() To add custom args to the url
    521          * @uses wp_redirect() Redirect the page to custom url
     521         * @uses wp_safe_redirect() Redirect the page to custom url
    522522         */
    523523        function toggle_topic() {
     
    579579                        // Redirect back to the topic
    580580                        $redirect = add_query_arg( $message, remove_query_arg( array( 'action', 'topic_id' ) ) );
    581                         wp_redirect( $redirect );
     581                        wp_safe_redirect( $redirect );
    582582
    583583                        // For good measure
Note: See TracChangeset for help on using the changeset viewer.