Changeset 7274
- Timestamp:
- 06/06/2018 05:25:49 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-api-update-updater.php
r7075 r7274 19 19 global $wpdb; 20 20 21 // Note: `left( pm.meta_value, 128 )` is due to the short `version` field length and some plugins with absurdly long version strings. 21 22 $out_of_date_plugins = $wpdb->get_col( 22 23 "SELECT p.post_name 23 24 FROM {$wpdb->posts} p 24 25 LEFT JOIN {$wpdb->prefix}update_source u ON p.ID = u.plugin_id 26 LEFT JOIN {$wpdb->postmeta} pm ON p.ID = pm.post_id AND pm.meta_key = 'version' 25 27 WHERE 26 28 p.post_type = 'plugin' … … 32 34 u.plugin_id IS NULL OR 33 35 u.last_updated != p.post_modified OR 36 ( u.version != pm.meta_value AND u.version != left( pm.meta_value, 128 ) ) OR 34 37 ( u.available = 1 AND (p.post_status != 'publish' AND p.post_status != 'disabled' ) ) OR 35 38 ( u.available = 0 AND (p.post_status = 'publish' OR p.post_status = 'disabled' ) )
Note: See TracChangeset
for help on using the changeset viewer.