Opened 16 years ago
Closed 16 years ago
#12887 closed defect (bug) (fixed)
Undefined variable: type in wp-admin/includes/template.php on line 1130
| Reported by: | caesarsgrunt | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Quick/Bulk Edit | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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.
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
See [12728]. Should have been changed over to the current screen object.