Skip to:
Content

bbPress.org

Changeset 4715


Ignore:
Timestamp:
01/25/2013 05:05:32 PM (11 years ago)
Author:
johnjamesjacoby
Message:

In favorite/subscription handlers, default redirect to get_permalink( $topic_id ) if no other match is found. Fixes #2160.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/users/functions.php

    r4706 r4715  
    497497        } elseif ( is_single() || is_page() ) {
    498498            $redirect = get_permalink();
     499        } else {
     500            $redirect = get_permalink( $topic_id );
    499501        }
    500502
     
    813815        } elseif ( is_single() || is_page() ) {
    814816            $redirect = get_permalink();
     817        } else {
     818            $redirect = get_permalink( $topic_id );
    815819        }
    816820
Note: See TracChangeset for help on using the changeset viewer.