Making WordPress.org

Changeset 3357


Ignore:
Timestamp:
06/14/2016 11:13:16 AM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Migrate plugins that are up for adoption to new taxonomy.

See #1762.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php

    r3341 r3357  
    140140        if ( ! wp_get_post_terms( $plugin->ID, 'plugin_category', array( 'fields' => 'ids' ) ) ) {
    141141            wp_set_post_terms( $plugin->ID, Tag_To_Category::map( $readme->tags ), 'plugin_category' );
     142        }
     143
     144        if ( in_array( 'adopt-me', $readme->tags ) ) {
     145            wp_set_post_terms( $plugin->ID, array( 74 /* Term ID for adopt-me */ ), 'plugin_section' );
    142146        }
    143147
Note: See TracChangeset for help on using the changeset viewer.