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-replies.php

    r3824 r3919  
    494494     *                    data, action and message
    495495     * @uses add_query_arg() To add custom args to the url
    496      * @uses wp_redirect() Redirect the page to custom url
     496     * @uses wp_safe_redirect() Redirect the page to custom url
    497497     */
    498498    function toggle_reply() {
     
    535535            // Redirect back to the reply
    536536            $redirect = add_query_arg( $message, remove_query_arg( array( 'action', 'reply_id' ) ) );
    537             wp_redirect( $redirect );
     537            wp_safe_redirect( $redirect );
    538538
    539539            // For good measure
Note: See TracChangeset for help on using the changeset viewer.