Ticket #8208: page.diff
File page.diff, 1.1 KB (added by , 16 years ago) |
---|
-
wp-admin/includes/template.php
883 882 $hidden = array_intersect( array_keys( $columns ), array_filter( (array) get_user_option( "manage-$type-columns-hidden" ) ) ); 884 883 $col_count = count($columns) - count($hidden); 885 884 $m = ( isset($mode) && 'excerpt' == $mode ) ? 'excerpt' : 'list'; 886 $can_publish = current_user_can( 'publish_posts');885 $can_publish = current_user_can("publish_{$type}s"); 887 886 $core_columns = array( 'cb' => true, 'date' => true, 'title' => true, 'categories' => true, 'tags' => true, 'comments' => true, 'author' => true ); 888 887 889 888 ?> … … 932 931 <?php endif; // $bulk 933 932 934 933 ob_start(); 935 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM934 $authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM 936 935 if ( $authors && count( $authors ) > 1 ) : 937 936 $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1); 938 937 if ( $bulk )