WordPress.org

Making WordPress.org

Changeset 5677


Ignore:
Timestamp:
07/17/2017 12:38:27 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: Properly add view=all and redirect back to the post when arching a reply.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php

    r5672 r5677  
    328328
    329329        if ( true === $success ) {
    330             $redirect = $this->get_permalink( $post->ID );
    331             bbp_redirect( $redirect );
     330            bbp_redirect( $permalink );
    332331        } elseif ( true === $is_archived && 'wporg_bbp_archive_post' === $action ) {
    333332            bbp_add_error( 'wporg_bbp_archive_post', __( '<strong>ERROR</strong>: There was a problem archiving that post!', 'wporg-forums' ) );
     
    542541                break;
    543542            case 'reply' :
    544                 $permalink = bbp_get_topic_permalink( bbp_get_reply_topic_id( $post->ID ) );
     543                $permalink = bbp_get_reply_url( $post->ID );
    545544                break;
    546545            case 'post' :
Note: See TracChangeset for help on using the changeset viewer.