Changeset 6875
- Timestamp:
- 03/14/2018 05:21:08 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php
r6874 r6875 108 108 109 109 $stats[ 'plugin_new' ] = (int) $wpdb->get_var( $wpdb->prepare( 110 "SELECT COUNT(*) FROM $wpdb->post s WHERE post_type = 'plugin' AND post_date >= %s AND post_date < %s",111 date( 'Y-m-d', strtotime( $args['date'] ) - ( $args['num_days'] * DAY_IN_SECONDS )),112 date( 'Y-m-d', strtotime( $args['date'] ) )110 "SELECT COUNT(*) FROM $wpdb->postmeta WHERE meta_key = '_submitted_date' AND meta_value >= %d AND meta_value < %d", 111 strtotime( $args['date'] ) - ( $args['num_days'] * DAY_IN_SECONDS ), 112 strtotime( $args['date'] ) + DAY_IN_SECONDS 113 113 ) ); 114 114
Note: See TracChangeset
for help on using the changeset viewer.