Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/09/2011 06:51:40 AM (15 years ago)
Author:
johnjamesjacoby
Message:

Prevent forum and topic ID's from being poisoned by functions that attempt to make calculations out of turn. Also prevent incorrect assignment of parent topic and forum ID's when posting from admin area. Fixes #1433.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-topic-template.php

    r3113 r3125  
    12651265        $forum_id = get_post_meta( $topic_id, '_bbp_forum_id', true );
    12661266
    1267         // Fallback to post_parent if no meta exists, and set post meta
    1268         if ( '' === $forum_id ) {
    1269             $forum_id = get_post_field( 'post_parent', $topic_id );
    1270             bbp_update_topic_forum_id( $topic_id, $forum_id );
    1271         }
    1272 
    12731267        return apply_filters( 'bbp_get_topic_forum_id', (int) $forum_id, $topic_id );
    12741268    }
Note: See TracChangeset for help on using the changeset viewer.