Skip to:
Content

bbPress.org

Ticket #2587: 2587.2.diff

File 2587.2.diff, 753 bytes (added by netweb, 5 years ago)
  • src/includes/admin/topics.php

     
    324324                // Formally update the topic
    325325                bbp_update_topic( $topic_id, $forum_id, $anonymous_data, $author_id, $is_edit );
    326326
     327                // If the topic was moved to a new forum, move the topic to update all the meta
     328                if ( $forum_id !== $topic->post_parent ) {
     329                        bbp_move_topic_handler( $topic_id, $topic->post_parent, $forum_id );
     330                }
     331
    327332                // Allow other fun things to happen
    328333                do_action( 'bbp_topic_attributes_metabox_save', $topic_id, $forum_id       );
    329334                do_action( 'bbp_author_metabox_save',           $topic_id, $anonymous_data );