WordPress.org

Make WordPress Core

Ticket #14420: author-dropdown.patch

File author-dropdown.patch, 832 bytes (added by garyc40, 9 years ago)
  • wp-admin/includes/template.php

    Property changes on: .
    ___________________________________________________________________
    Added: svn:ignore
       + wp-config.php
    
    
     
    930930        if ( post_type_supports( $screen->post_type, 'author' ) ) :
    931931                $authors = get_editable_user_ids( get_current_user_id(), true, $screen->post_type ); // TODO: ROLE SYSTEM
    932932                $authors_dropdown = '';
    933                 if ( $authors && count( $authors ) > 1 ) :
     933                if ( $authors ) :
    934934                        $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0);
    935935                        if ( $bulk )
    936936                                $users_opt['show_option_none'] = __('— No Change —');