Skip to:
Content

bbPress.org

Ticket #1555: 1555.patch

File 1555.patch, 639 bytes (added by DJPaul, 15 years ago)
  • bbp-includes/bbp-forum-functions.php

     
    5555                        bbp_get_forum_post_type()     === $_POST['post_type']
    5656        ) {
    5757
     58                $parent_forum_id = ( !empty( $_POST['parent_id'] ) ? (int) $_POST['parent_id'] : 0 );
     59
    5860                // Update the forum meta bidness
    59                 bbp_update_forum( array( 'forum_id' => $forum_id, 'post_parent' => (int) $_POST['parent_id'] ) );
     61                bbp_update_forum( array( 'forum_id' => $forum_id, 'post_parent' => $parent_forum_id ) );
    6062        }
    6163}
    6264