Fix notice in bulk edit posts, props dd32, fixes #11184

git-svn-id: http://svn.automattic.com/wordpress/trunk@12285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-11-26 11:41:37 +00:00
parent c3f7df6b24
commit e0f5abc2d3

View File

@ -1060,11 +1060,11 @@ function inline_edit_row( $type ) {
<?php endif; // $bulk <?php endif; // $bulk
$authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM $authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM
$authors_dropdown = '';
if ( $authors && count( $authors ) > 1 ) : if ( $authors && count( $authors ) > 1 ) :
$users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0); $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1, 'echo' => 0);
if ( $bulk ) if ( $bulk )
$users_opt['show_option_none'] = __('- No Change -'); $users_opt['show_option_none'] = __('- No Change -');
$authors_dropdown = '<label>'; $authors_dropdown = '<label>';
$authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>'; $authors_dropdown .= '<span class="title">' . __( 'Author' ) . '</span>';
$authors_dropdown .= wp_dropdown_users( $users_opt ); $authors_dropdown .= wp_dropdown_users( $users_opt );