Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/09/2018 09:01:39 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Post Types: replace literal post type strings with functional wrappers.

This fills in a few gaps where filtered post type names would not be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/topics/functions.php

    r6848 r6850  
    783783
    784784                // Update anonymous meta data (not cookies)
    785                 bbp_update_anonymous_post_author( $topic_id, $anonymous_data, 'topic' );
     785                bbp_update_anonymous_post_author( $topic_id, $anonymous_data, bbp_get_topic_post_type() );
    786786
    787787                // Set transient for throttle check (only on new, not edit)
     
    25072507        // Get replies of topic
    25082508        $reply_count = empty( $reply_count )
    2509                 ? bbp_get_non_public_child_count( $topic_id, 'reply' )
     2509                ? bbp_get_non_public_child_count( $topic_id, bbp_get_reply_post_type() )
    25102510                : (int) $reply_count;
    25112511
Note: See TracChangeset for help on using the changeset viewer.