Making WordPress.org


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

Theme Directory: Rejig the query modifications for when to include delisted themes.

This reimplements [11239] after it caused the API to fail to return correctly for non-delisted themes.

See #5906.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/class-themes-api.php

    r11199 r11243  
    477477            // get_post_by_slug()
    478478            $themes = get_posts( array(
    479                 'name'      => $this->request->slug,
    480                 'post_type' => 'repopackage',
    481                 'post_status' => 'publish,delist',
     479                'name'        => $this->request->slug,
     480                'post_type'   => 'repopackage',
     481                'post_status' => 'publish', // delist will be added by query-modifications.
    482482            ) );
    483483
Note: See TracChangeset for help on using the changeset viewer.