Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/04/2017 03:54:06 PM (8 years ago)
Author:
johnjamesjacoby
Message:

Queries: Use new object_type over old post_type.

When bbp_get_user_object_ids() was introduced, some helpers did not get updated to use the new argument key. This change fixes that, and fixes failing tests in the process.

Note that these tests are testing new & unused helper functions for 2.6, so it's unlikely any noticable problems occurred from these being broken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/search/template.php

    r6573 r6612  
    4848
    4949        // Default view=all statuses
    50         $post_statuses = array(
    51             bbp_get_public_status_id(),
    52             bbp_get_closed_status_id(),
    53             bbp_get_spam_status_id(),
    54             bbp_get_trash_status_id(),
    55             bbp_get_pending_status_id()
    56         );
     50        $post_statuses = array_keys( bbp_get_topic_statuses() );
    5751
    5852        // Add support for private status
Note: See TracChangeset for help on using the changeset viewer.