From 64fd3c3e5940ac930af5ac325a2d003a7bf5de07 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sat, 11 Jul 2009 09:17:09 +0000 Subject: [PATCH] Call wp_dropdown_users() with echo=0 when outputting the quickedit and bulkedit forms so as to remove the need for output buffering. Fixes #10062 props johnbillion. git-svn-id: https://develop.svn.wordpress.org/trunk@11709 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index de0dc6586b..402cc34cb2 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1055,21 +1055,18 @@ function inline_edit_row( $type ) { id, true, $type ); // TODO: ROLE SYSTEM if ( $authors && count( $authors ) > 1 ) : - $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 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 .= '' . __( 'Author' ) . ''; + $authors_dropdown .= wp_dropdown_users( $users_opt ); + $authors_dropdown .= ''; + endif; // authors - $authors_dropdown = ob_get_clean(); ?>