Making WordPress.org

Changeset 11280


Ignore:
Timestamp:
10/18/2021 03:06:37 AM (4 years ago)
Author:
dd32
Message:

Theme Directory: Include themes on an opt-in basis in the themes.svn access file during testing.

This limitation will be removed once everything is confirmed to be operational.

See #5899

File:
1 edited

Legend:

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

    r11237 r11280  
    6060
    6161        // Raw SQL to avoid loading every WP_Post / WP_User object causing OOM errors.
     62        // postmeta join is temporary to only allow certain themes during testing.
    6263        $themes = $wpdb->get_results(
    6364            "SELECT p.post_name as slug, u.user_login as user
    6465            FROM {$wpdb->posts} p
    6566            JOIN {$wpdb->users} u ON p.post_author = u.ID
     67            JOIN {$wpdb->postmeta} pm ON p.ID = pm.post_id AND pm.meta_key = 'svn_access'
    6668            WHERE p.post_type = 'repopackage' AND p.post_status IN( 'publish', 'delist' )
    6769            ORDER BY p.post_name ASC"
     
    7779        }
    7880        echo "\n";
    79 
    80         // TODO: Temporarily don't output the Theme Authors until we're ready.
    81         exit();
    8281
    8382        // Theme Authors.
Note: See TracChangeset for help on using the changeset viewer.