Changeset 10230 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-meta-sync.php
- Timestamp:
- 09/02/2020 04:41:58 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/jobs/class-meta-sync.php
r9285 r10230 41 41 "SELECT p.id as post_id, downloads 42 42 FROM `{$wpdb->posts}` p 43 JOIN `{$download_count_table}` c onp.post_name = c.plugin_slug43 JOIN `{$download_count_table}` c ON p.post_name = c.plugin_slug 44 44 LEFT JOIN `{$wpdb->postmeta}` pm ON p.id = pm.post_id AND pm.meta_key = 'downloads' 45 45 46 46 WHERE 47 downloads != pm.meta_value OR 48 pm.meta_id IS NULL" 47 pm.meta_id IS NULL 48 OR 49 downloads - pm.meta_value > 10 50 " 49 51 ); 50 52
Note: See TracChangeset
for help on using the changeset viewer.