[wp-trac] [WordPress Trac] #12887: Undefined variable: type in wp-admin/includes/template.php on line 1130
WordPress Trac
wp-trac at lists.automattic.com
Wed Apr 7 05:30:21 UTC 2010
#12887: Undefined variable: type in wp-admin/includes/template.php on line 1130
--------------------------+-------------------------------------------------
Reporter: caesarsgrunt | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Quick Edit | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Line 1130 of wp-admin/includes/template.php, in the function
{{{inline_edit_row()}}}, reads as follows :
{{{
do_action( $bulk ? 'bulk_edit_custom_box' :
'quick_edit_custom_box', $column_name, $type);
}}}
but the variable {{{$type}}} is no defined anywhere.
The phpdoc for the function states that there should be a {{{$type}}}
attribute :
{{{
* @param string $type 'post' or 'page'
}}}
but the only parameter is actually {{{$screen}}}.
The result is that with WP_DEBUG set I get the following error for every
custom column :
{{{
Notice: Undefined variable: type in /Users/caesar/Sites/wordpress/wp-
admin/includes/template.php on line 1130
}}}
Running latest nightly as of 7th April @ 05:00 GMT.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12887>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list