Changeset 6873
- Timestamp:
- 03/14/2018 05:14:59 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
r6534 r6873 151 151 152 152 // Record the time a plugin was transitioned into a specific status. 153 update_post_meta( $post->ID, "_{$new_status}", strtotime( $post->post_modified_gmt ) ); 153 if ( '0000-00-00 00:00:00' === $post->post_modified_gmt ) { 154 // Assume now. 155 update_post_meta( $post->ID, "_{$new_status}", time() ); 156 } else { 157 update_post_meta( $post->ID, "_{$new_status}", strtotime( $post->post_modified_gmt ) ); 158 } 154 159 } 155 160
Note: See TracChangeset
for help on using the changeset viewer.