Make WordPress Core

Ticket #8208: page.diff

File page.diff, 1.1 KB (added by DD32, 16 years ago)
  • wp-admin/includes/template.php

     
    883882        $hidden = array_intersect( array_keys( $columns ), array_filter( (array) get_user_option( "manage-$type-columns-hidden" ) ) );
    884883        $col_count = count($columns) - count($hidden);
    885884        $m = ( isset($mode) && 'excerpt' == $mode ) ? 'excerpt' : 'list';
    886         $can_publish = current_user_can('publish_posts');
     885        $can_publish = current_user_can("publish_{$type}s");
    887886        $core_columns = array( 'cb' => true, 'date' => true, 'title' => true, 'categories' => true, 'tags' => true, 'comments' => true, 'author' => true );
    888887
    889888?>
     
    932931<?php endif; // $bulk
    933932
    934933                ob_start();
    935                 $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
     934                $authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM
    936935                if ( $authors && count( $authors ) > 1 ) :
    937936                        $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1);
    938937                        if ( $bulk )