Changeset 9715
- Timestamp:
- 11/15/2008 06:04:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r9712 r9715 884 884 $col_count = count($columns) - count($hidden); 885 885 $m = ( isset($mode) && 'excerpt' == $mode ) ? 'excerpt' : 'list'; 886 $can_publish = current_user_can( 'publish_posts');886 $can_publish = current_user_can("publish_{$type}s"); 887 887 $core_columns = array( 'cb' => true, 'date' => true, 'title' => true, 'categories' => true, 'tags' => true, 'comments' => true, 'author' => true ); 888 888 … … 933 933 934 934 ob_start(); 935 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM935 $authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM 936 936 if ( $authors && count( $authors ) > 1 ) : 937 937 $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1);
Note: See TracChangeset
for help on using the changeset viewer.