Making WordPress.org

Changeset 3500


Ignore:
Timestamp:
06/20/2016 01:08:28 PM (9 years ago)
Author:
tellyworth
Message:

Add last_updated meta value to plugin posts.

The correct post_modified date isn't available to ElasticSearch, this will help till we resolve that.

See #1692

File:
1 edited

Legend:

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

    r3477 r3500  
    165165        update_post_meta( $plugin->ID, 'assets_icons',       wp_slash( $assets['icon'] ) );
    166166        update_post_meta( $plugin->ID, 'assets_banners',     wp_slash( $assets['banner'] ) );
     167        update_post_meta( $plugin->ID, 'last_updated',       wp_slash( $plugin->post_modified_gmt ) );
    167168
    168169        // Calculate the 'plugin color' from the average color of the banner if provided. This is used for fallback icons.
Note: See TracChangeset for help on using the changeset viewer.