Changeset 5338 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
- Timestamp:
- 04/15/2017 10:47:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r5317 r5338 82 82 $plugin->post_excerpt = trim( $readme->short_description ) ?: $headers->Description ?: $plugin->post_excerpt; 83 83 84 // Bump last updated if the version has changed, but only if this isn't a fresh import. 85 if ( !isset( $headers->Version ) || $headers->Version != get_post_meta( $plugin->ID, 'version', true ) ) { 84 // Bump last updated if the version has changed, or if the post_modified is empty (which is the case for many initial checkins). 85 if ( ( !isset( $headers->Version ) || $headers->Version != get_post_meta( $plugin->ID, 'version', true ) ) || 86 ( $plugin->post_modified == '0000-00-00 00:00:00' ) ) { 86 87 $plugin->post_modified = $plugin->post_modified_gmt = current_time( 'mysql' ); 87 88 }
Note: See TracChangeset
for help on using the changeset viewer.