Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/23/2018 04:59:08 AM (8 years ago)
Author:
johnjamesjacoby
Message:

Common: introduce bbp_get_post_types() and use where appropriate.

Fixes #2769.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/sub-actions.php

    r6792 r6814  
    271271    // Get bbPress post types
    272272    $post_type = get_post_type( $post );
    273     $types     = get_post_types( array( 'source' => 'bbpress' ) );
     273    $types     = bbp_get_post_types();
    274274
    275275    // Bail if post is not a bbPress post type
Note: See TracChangeset for help on using the changeset viewer.