diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-status-transitions.php
index 5137ea713..640c5a568 100644
|
|
class Status_Transitions { |
131 | 131 | switch ( $new_status ) { |
132 | 132 | case 'approved': |
133 | 133 | $this->approved( $post->ID, $post ); |
| 134 | # See https://meta.trac.wordpress.org/ticket/4237#comment:5 |
| 135 | update_post_meta( $post->ID, "last_updated", gmdate( 'Y-m-d H:i:s', time() ) ); |
134 | 136 | break; |
135 | 137 | |
136 | 138 | case 'rejected': |
137 | 139 | $this->rejected( $post->ID, $post ); |
| 140 | # See https://meta.trac.wordpress.org/ticket/4237#comment:5 |
| 141 | update_post_meta( $post->ID, "last_updated", gmdate( 'Y-m-d H:i:s', time() ) ); |
138 | 142 | break; |
139 | 143 | |
140 | 144 | case 'publish': |
… |
… |
class Status_Transitions { |
148 | 152 | $this->set_translation_status( $post, 'inactive' ); |
149 | 153 | break; |
150 | 154 | } |
151 | | |
152 | | // Record the time a plugin was transitioned into a specific status. |
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 | | } |
159 | | } |
| 155 | update_post_meta( $post->ID, "_{$new_status}", time() ); |
| 156 | } |
160 | 157 | |
161 | 158 | /** |
162 | 159 | * Updates project status of the plugin on translate.wordpress.org. |