[wp-trac] [WordPress Trac] #13982: Quick edit changes author

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 28 04:36:47 UTC 2010


#13982: Quick edit changes author
-----------------------------+----------------------------------------------
 Reporter:  jfarthing84      |       Owner:     
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.1
Component:  Quick/Bulk Edit  |     Version:  3.0
 Severity:  major            |    Keywords:     
-----------------------------+----------------------------------------------

Comment(by nacin):

 That I can't reproduce. The administrator sees an author box as long as
 there is at least one other user a contributor or higher.

 Here's the code in 3.0.x from wp-admin/includes/template. Going to need
 some help if we're going to fix this --- where is it failing for you?
 {{{
         if ( post_type_supports( $screen->post_type, 'author' ) ) :
                 $authors = get_editable_user_ids( get_current_user_id(),
 true, $screen->post_type ); // TODO: ROLE SYSTEM
                 $authors_dropdown = '';
                 if ( $authors && count( $authors ) > 1 ) :
                         $users_opt = array('include' => $authors, 'name'
 => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0);
                         if ( $bulk )
                                 $users_opt['show_option_none'] =
 __('— No Change —');
                         $authors_dropdown  = '<label>';
                         $authors_dropdown .= '<span class="title">' . __(
 'Author' ) . '</span>';
                         $authors_dropdown .= wp_dropdown_users( $users_opt
 );
                         $authors_dropdown .= '</label>';

                 endif; // authors
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13982#comment:17>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list