Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/29/2024 05:15:20 PM (21 months ago)
Author:
johnjamesjacoby
Message:

Merge 2.6 improvements into trunk.

From 2.6.11.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/includes/forums/functions.php

    r7268 r7275  
    23102310    $post_types = array_filter( (array) $posts_query->get( 'post_type' ) );
    23112311
     2312    // Bail if no post types to normalize
     2313    if ( empty( $post_types ) ) {
     2314        return;
     2315    }
     2316
    23122317    // Forums
    23132318    if ( in_array( bbp_get_forum_post_type(), $post_types, true ) ) {
     
    23352340    }
    23362341
    2337     // Some other post type besides Forums, Topics, or Replies
     2342    // Any bbPress post type
    23382343    if ( ! array_diff( $post_types, bbp_get_post_types() ) ) {
    23392344
Note: See TracChangeset for help on using the changeset viewer.