Changeset 5266
- Timestamp:
- 04/05/2017 11:00:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php
r5265 r5266 136 136 $extra = ''; 137 137 $classes = $tooltips = array(); 138 $last_updated = get_post_meta( $plugin->ID, 'last_updated', true ); 138 139 139 140 if ( in_array( $plugin->post_name, wp_list_pluck( $author_plugins, 'post_name' ) ) ) { … … 148 149 $plugin_slug = $plugin->post_name; 149 150 if ( in_array( $plugin->post_status, array( 'draft', 'pending' ) ) ) { 150 $extra .= ' (requested ' . human_time_diff( strtotime( $ plugin->post_date) ) . ' ago)';151 $extra .= ' (requested ' . human_time_diff( strtotime( $last_updated ) ) . ' ago)'; 151 152 $tooltips[] = 'Requested, remains unapproved.'; 152 153 $classes[] = 'profile-plugin-requested'; … … 176 177 $classes[] = 'profile-plugin-open'; 177 178 178 if ( strtotime( '-2 years' ) > strtotime( $ plugin->post_date) ) {179 if ( strtotime( '-2 years' ) > strtotime( $last_updated ) ) { 179 180 $tooltips[] = 'Plugin is open, but has not been updated in more than two years.'; 180 181 $classes[] = 'profile-plugin-open-old';
Note: See TracChangeset
for help on using the changeset viewer.