Skip to:
Content

bbPress.org

Changeset 4427


Ignore:
Timestamp:
11/16/2012 02:09:39 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Revisions:

  • Use correct post type in replies.
  • See #2029.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/replies/functions.php

    r4426 r4427  
    550550
    551551    // Toggle revisions to avoid duplicates
    552     if ( post_type_supports( bbp_get_topic_post_type(), 'revisions' ) ) {
     552    if ( post_type_supports( bbp_get_reply_post_type(), 'revisions' ) ) {
    553553        $revisions_removed = true;
    554         remove_post_type_support( bbp_get_topic_post_type(), 'revisions' );
     554        remove_post_type_support( bbp_get_reply_post_type(), 'revisions' );
    555555    }
    556556
     
    561561    if ( true === $revisions_removed ) {
    562562        $revisions_removed = true;
    563         add_post_type_support( bbp_get_topic_post_type(), 'revisions' );
     563        add_post_type_support( bbp_get_reply_post_type(), 'revisions' );
    564564    }
    565565
Note: See TracChangeset for help on using the changeset viewer.