WordPress.org

Making WordPress.org


Ignore:
Timestamp:
10/07/2016 04:44:39 AM (5 years ago)
Author:
dd32
Message:

Plugin Directory: Switch Contributors from being stored as post meta to a taxonomy to allow for more efficient querying.

/author/$author/ / author_name queries are now based on this taxonomy rather than by the post_author.

See #1724, #1840.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api-request.php

    r4125 r4197  
    164164            // Tags
    165165            if ( ! empty( $this->args->tag ) ) {
    166                 $query['plugin_tag'] = is_array( $this->args->tag ) ? reset( $this->args->tag ) : $this->args->tag;
     166                $query['plugin_tags'] = $this->args->tag;
    167167            }
    168168
     
    175175            if ( ! empty( $this->args->author ) ) {
    176176                $query['author_name'] = $this->args->author;
    177                 //$query['contributor_search'] = $this->args->author; // TODO
    178177            }
    179178
Note: See TracChangeset for help on using the changeset viewer.