From 736d80e1c050624ba13b5c53a272db18b1e46164 Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 7 Apr 2010 06:01:29 +0000 Subject: [PATCH] Use correct var in inline_edit_row(). fixes #12887. git-svn-id: http://svn.automattic.com/wordpress/trunk@14026 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 34d1d26d9..97b869951 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -844,7 +844,7 @@ function get_hidden_columns($screen) { * * @since 2.7 * - * @param string $type 'post' or 'page' + * @param string $screen */ function inline_edit_row( $screen ) { global $current_user, $mode; @@ -1143,7 +1143,7 @@ endif; // post_type_supports comments or pings ?> foreach ( $columns as $column_name => $column_display_name ) { if ( isset( $core_columns[$column_name] ) ) continue; - do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $type); + do_action( $bulk ? 'bulk_edit_custom_box' : 'quick_edit_custom_box', $column_name, $screen->post_type ); } ?>