Make WordPress Core

Ticket #4359: remove-authors.diff

File remove-authors.diff, 1.3 KB (added by westi, 19 years ago)

Patch to remove the authors dropdown and move the action to a better place.

  • wp-admin/edit.php

     
    2929
    3030wp("what_to_show=posts$post_status_q&posts_per_page=15");
    3131
    32 do_action('restrict_manage_posts');
    33 
    3432// define the columns to display, the syntax is 'internal name' => 'display name'
    3533$posts_columns = array(
    3634        'id'         => '<div style="text-align: center">' . __('ID') . '</div>',
    … …  
    8482                </select>
    8583        </fieldset>
    8684
    87 <?php
    88 $editable_ids = get_editable_user_ids( $user_ID );
    89 if ( $editable_ids && count( $editable_ids ) > 1 ) :
    90 ?>
    91         <fieldset><legend><?php _e('Author&hellip;'); ?></legend>
    92                 <?php wp_dropdown_users( array('include' => $editable_ids, 'show_option_all' => __('Any'), 'name' => 'author', 'selected' => isset($_GET['author']) ? $_GET['author'] : 0) ); ?>
    93         </fieldset>
    94 
    9585<?php
    96 endif;
    97 
    9886$arc_query = "SELECT DISTINCT YEAR(post_date) AS yyear, MONTH(post_date) AS mmonth FROM $wpdb->posts WHERE post_type = 'post' ORDER BY post_date DESC";
    9987
    10088$arc_result = $wpdb->get_results( $arc_query );
    … …  
    133121        <input type="submit" id="post-query-submit" value="<?php _e('Filter &#187;'); ?>" class="button" />
    134122</form>
    135123
     124<?php do_action('restrict_manage_posts');?>
     125
    136126<br style="clear:both;" />
    137127
    138128<?php include( 'edit-post-rows.php' ); ?>