Skip to:
Content

bbPress.org

Changeset 7280


Ignore:
Timestamp:
07/10/2024 05:54:42 PM (8 months ago)
Author:
johnjamesjacoby
Message:

Search: remove array_keys() from

This change ensures that the correct public statuses are used by default inside of the bbp_has_search_results() function, and it does this by using the values from bbp_get_public_topic_statuses() and not the keys.

This fixes a regression causing search results to omit public statuses as part of their default arguments.

Props GDragoN.

Fixes #3607.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.6/src/includes/search/template.php

    r7262 r7280  
    4848
    4949    // Default public statuses (topics coincidentally cover all post types)
    50     $post_statuses = array_keys( bbp_get_public_topic_statuses() );
     50    $post_statuses = bbp_get_public_topic_statuses();
    5151
    5252    // Add support for private status
  • trunk/src/includes/search/template.php

    r7268 r7280  
    4848
    4949    // Default public statuses (topics coincidentally cover all post types)
    50     $post_statuses = array_keys( bbp_get_public_topic_statuses() );
     50    $post_statuses = bbp_get_public_topic_statuses();
    5151
    5252    // Add support for private status
Note: See TracChangeset for help on using the changeset viewer.