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/cli/class-import.php

    r3897 r4197  
    2727        'license_uri',
    2828        'upgrade_notice',
    29         'contributors',
    3029        'screenshots'
    3130    );
     
    147146        // Set tags from the readme
    148147        wp_set_post_terms( $plugin->ID, $readme->tags, 'plugin_tags' );
     148
     149        // Update the contributors list
     150        wp_set_post_terms( $plugin->ID, $readme->contributors, 'plugin_contributors' );
    149151
    150152        if ( in_array( 'adopt-me', $readme->tags ) ) {
Note: See TracChangeset for help on using the changeset viewer.