Changeset 1422056
- Timestamp:
- 05/23/2016 04:19:52 AM (10 years ago)
- File:
-
- 1 edited
-
wp-bulk-post-delete/trunk/bulk_post_delete.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-bulk-post-delete/trunk/bulk_post_delete.php
r1415601 r1422056 18 18 ?> 19 19 <div class="wrap"> 20 <ul id="users"> 21 <h2><?php _e('Authors'); ?></h2> 22 <form action="<?php bloginfo('url'); ?>" method="get"> 23 <?php 24 $authors = wp_dropdown_users(array('name' => 'author')); 25 $author_count = array(); 26 foreach ( (array) $wpdb->get_results( "SELECT DISTINCT post_author, COUNT(ID) AS count FROM $wpdb->posts WHERE " . get_private_posts_cap_sql( 'post' ) . " GROUP BY post_author" ) as $row ) { 27 $author_count[$row->post_author] = $row->count; 28 } 29 ?> 30 <input type="submit" name="submit" value="view" /> 31 </form> 32 </ul> 33 20 34 <h2>Wordpress Delete by category</h2> 21 35 </div>
Note: See TracChangeset
for help on using the changeset viewer.