Changeset 5334
- Timestamp:
- 04/14/2017 08:03:47 PM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php
r5318 r5334 56 56 * @type int $plugin_new The number of plugins submitted within the defined time interval. 57 57 * @type int $plugin_reject The number of plugins rejected within the defined time interval. 58 * @type int $in_queue The number of plugins currently in the queue ( draftor pending).59 * @type int $in_queue_ draft The number of draftplugins currently in the queue.60 * @type int $in_queue_ oending The number of pending plugins currently in the queue.58 * @type int $in_queue The number of plugins currently in the queue (new or pending). 59 * @type int $in_queue_new The number of new plugins currently in the queue. 60 * @type int $in_queue_pending The number of pending plugins currently in the queue. 61 61 * @type int $in_queue_from_time_window The number of plugins currently in the queue submitted during the specified time window. 62 62 * @type int $in_queue_old The number of plugins currently in the queue that are older than "recently". … … 106 106 // -------------- 107 107 108 // # of plugins currently in the queue that are drafts(have not been processed/replied to yet)109 $stats['in_queue_ draft'] = $wpdb->get_var(108 // # of plugins currently in the queue that are new (have not been processed/replied to yet) 109 $stats['in_queue_new'] = $wpdb->get_var( 110 110 "SELECT COUNT(*) FROM $wpdb->posts WHERE `post_type` = 'plugin' AND `post_status` = 'new'" 111 111 ); … … 116 116 ); 117 117 118 // # of plugins currently in the queue ( draft+ pending)119 $stats['in_queue'] = $stats['in_queue_ draft'] + $stats['in_queue_pending'];118 // # of plugins currently in the queue (new + pending) 119 $stats['in_queue'] = $stats['in_queue_new'] + $stats['in_queue_pending']; 120 120 121 121 // # of plugins currently in the queue submitted during the specified time window … … 246 246 247 247 <ul style="font-family:Courier New;"> 248 <li><?php printf( __( 'Plugins in the queue ( draftand pending)* : %d', 'wporg-plugins' ), $stats['in_queue'] ); ?></li>248 <li><?php printf( __( 'Plugins in the queue (new and pending)* : %d', 'wporg-plugins' ), $stats['in_queue'] ); ?></li> 249 249 <li><?php printf( __( '→ (older than %1$d days ago)** : %2$d', 'wporg-plugins' ), $stats['recentdays'], $stats['in_queue_old'] ); ?></li> 250 250 <li><?php printf( __( '→ (%1$s - %2$s) : %3$d', 'wporg-plugins' ), $start_date, $stats['date'], $stats['in_queue_from_time_window'] ); ?></li> 251 <li><?php printf( __( '→ ( drafts; not processed or replied to yet)* : %d', 'wporg-plugins' ), $stats['in_queue_draft'] ); ?></li>251 <li><?php printf( __( '→ (new; not processed or replied to yet)* : %d', 'wporg-plugins' ), $stats['in_queue_new'] ); ?></li> 252 252 <li><?php printf( __( '→ (pending; replied to)* : %d', 'wporg-plugins' ), $stats['in_queue_pending'] ); ?></li> 253 253 </ul> -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r5328 r5334 1233 1233 * @type string $post_title The post title. Default empty. 1234 1234 * @type string $post_excerpt The post excerpt. Default empty. 1235 * @type string $post_status The post status. Default ' draft'.1235 * @type string $post_status The post status. Default 'new'. 1236 1236 * @type string $post_type The post type. Default 'post'. 1237 1237 * @type string $comment_status Whether the post can accept comments. Accepts 'open' or 'closed'.
Note: See TracChangeset
for help on using the changeset viewer.