Ticket #4359: remove-authors.diff
| File remove-authors.diff, 1.3 KB (added by , 19 years ago) |
|---|
-
wp-admin/edit.php
29 29 30 30 wp("what_to_show=posts$post_status_q&posts_per_page=15"); 31 31 32 do_action('restrict_manage_posts');33 34 32 // define the columns to display, the syntax is 'internal name' => 'display name' 35 33 $posts_columns = array( 36 34 'id' => '<div style="text-align: center">' . __('ID') . '</div>', … … 84 82 </select> 85 83 </fieldset> 86 84 87 <?php88 $editable_ids = get_editable_user_ids( $user_ID );89 if ( $editable_ids && count( $editable_ids ) > 1 ) :90 ?>91 <fieldset><legend><?php _e('Author…'); ?></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 95 85 <?php 96 endif;97 98 86 $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"; 99 87 100 88 $arc_result = $wpdb->get_results( $arc_query ); … … 133 121 <input type="submit" id="post-query-submit" value="<?php _e('Filter »'); ?>" class="button" /> 134 122 </form> 135 123 124 <?php do_action('restrict_manage_posts');?> 125 136 126 <br style="clear:both;" /> 137 127 138 128 <?php include( 'edit-post-rows.php' ); ?>
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)