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/forums/functions.php

    r6784 r6814  
    20592059
    20602060    // Some other post type besides Forums, Topics, or Replies
    2061     } elseif ( ! array_diff( $post_types, get_post_types( array( 'source' => 'bbpress' ) ) ) ) {
     2061    } elseif ( ! array_diff( $post_types, bbp_get_post_types() ) ) {
    20622062
    20632063        // Get forums to exclude
Note: See TracChangeset for help on using the changeset viewer.