Making WordPress.org

Changeset 11227


Ignore:
Timestamp:
09/13/2021 04:17:02 AM (5 years ago)
Author:
dd32
Message:

Theme Directory: Delisted themes are excluded from searches, don't override it by specifically requesting delisted themes in the query.

See #5362.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/query-modifications.php

    r11166 r11227  
    3636        // eliminate draft posts from showing up in the directory
    3737        if (
    38                 ! isset( $query->query_vars['post_status'] ) ||
    39                 'publish' === $query->query_vars['post_status']
     38                (
     39                        ! isset( $query->query_vars['post_status'] ) ||
     40                        'publish' === $query->query_vars['post_status']
     41                ) &&
     42                ! $query->is_search()
    4043        ) {
    4144                $query->query_vars['post_status'] = array(
Note: See TracChangeset for help on using the changeset viewer.