From fb9e47a5a9266f24e57183ad4e25fa40b57d3bc5 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 7 Apr 2010 06:01:29 +0000 Subject: [PATCH] Use correct var in inline_edit_row(). fixes #12887. git-svn-id: https://develop.svn.wordpress.org/trunk@14026 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 34d1d26d9f..97b8699514 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 ); } ?>