Opened 10 years ago
Closed 10 years ago
#33893 closed defect (bug) (fixed)
WP_Post_Comments_List_Table blows up as WP_Comments_List_Table does not exist
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | 4.4 |
| Component: | Comments | Keywords: | has-patch |
| Focuses: | administration | Cc: |
Description
It appears that moving WP_Post_Comments_List_Table to a separate file [34223] has open up an issue with the "Comments" meta box in the single post edit administration screen. The WP_Comments_List_Table class was not found when attempting to define the WP_Post_Comments_List_Table class.
The error that is displayed in the Comments box is:
Fatal error: Class 'WP_Comments_List_Table' not found in ../src/wp-admin/includes/class-wp-post-comments-list-table.php on line 20
To fix this issue, the WP_Post_Comments_List_Table entry in _get_list_table() will also have to require the WP_Comments_List_Table class.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
_get_list_table(): RequiringWP_Comments_List_Tablebefore requiringWP_Post_Comments_List_Table