Changeset 4346
- Timestamp:
- 11/11/2016 04:47:32 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
r4214 r4346 98 98 ) ); 99 99 } 100 $plugin->post_status = $status; 100 101 101 102 $readme = $data['readme']; … … 119 120 $plugin->post_excerpt = trim( $readme->short_description ) ?: $headers->Description ?: $plugin->post_excerpt; 120 121 121 $plugin->post_date = $topic->topic_start_time;122 $plugin->post_date_gmt = $topic->topic_start_time;123 $plugin->override_modified_date = true;124 $plugin->post_modified = $topic->topic_time;125 $plugin->post_modified_gmt = $topic->topic_time;126 127 $plugin->post_status = $status;128 if ( ! $plugin->post_title ) {129 $plugin->post_title = $topic->topic_title;130 }131 132 122 // Bump last updated if the version has changed. 133 123 if ( !isset( $headers->Version ) || $headers->Version != get_post_meta( $plugin->ID, 'version', true ) ) { 124 $plugin->override_modified_date = true; 134 125 $plugin->post_modified = $plugin->post_modified_gmt = current_time( 'mysql' ); 135 126 } … … 192 183 // Finally, set the new version live. 193 184 update_post_meta( $plugin->ID, 'stable_tag', $stable_tag ); 185 186 return true; 194 187 } 195 188
Note: See TracChangeset
for help on using the changeset viewer.