Ticket #2725: 2725.patch
File 2725.patch, 5.0 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/tools/class-stats-report.php
55 55 * @type int $plugin_delist The number of plugins delisted within the defined time interval. 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". 63 63 * @type int $supportpress_queue_total_open The number of currently open support threads. … … 105 105 // Plugin Queue 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 ); 112 112 … … 115 115 "SELECT COUNT(*) FROM $wpdb->posts WHERE `post_type` = 'plugin' AND `post_status` = 'pending'" 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 122 122 $stats['in_queue_from_time_window'] = $wpdb->get_var( $wpdb->prepare( … … 245 245 <h3><?php _e( 'Plugin Queue Stats (current)', 'wporg-plugins' ); ?></h3> 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> 254 254 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
1232 1232 * @type string $post_content_filtered The filtered post content. Default empty. 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'. 1238 1238 * Default is the value of 'default_comment_status' option.