Plugin Directory

Changeset 1422056


Ignore:
Timestamp:
05/23/2016 04:19:52 AM (10 years ago)
Author:
shjain
Message:

Adding first version of my plugin11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-bulk-post-delete/trunk/bulk_post_delete.php

    r1415601 r1422056  
    1818?>
    1919<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
    2034        <h2>Wordpress Delete by category</h2>
    2135        </div>
Note: See TracChangeset for help on using the changeset viewer.