Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/22/2012 08:28:28 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Redirects:

  • Tweak topic and reply form fields to include redirect_to field.
  • Fix redirect logic in single items after editing.
  • Remove forum_id from new reply hidden fields, and calculate on handler based off of topic ID (to prevent mismatches.)
  • Fixes #1829.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-reply-functions.php

    r3911 r3912  
    160160    if ( isset( $_POST['bbp_forum_id'] ) ) {
    161161        $forum_id = (int) $_POST['bbp_forum_id'];
     162    } elseif ( !empty( $topic_id ) ) {
     163        $forum_id = bbp_get_topic_forum_id( $topic_id );
    162164    } else {
    163165        bbp_add_error( 'bbp_reply_forum_id', __( '<strong>ERROR</strong>: Forum ID is missing.', 'bbpress' ) );
Note: See TracChangeset for help on using the changeset viewer.