Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#33893 closed defect (bug) (fixed)

WP_Post_Comments_List_Table blows up as WP_Comments_List_Table does not exist

Reported by: tyxla Owned by: SergeyBiryukov
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.4
Component: Comments Keywords: has-patch
Focuses: administration Cc:


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)

33893.patch (622 bytes) - added by tyxla 3 years ago.
_get_list_table(): Requiring WP_Comments_List_Table before requiring WP_Post_Comments_List_Table

Download all attachments as: .zip

Change History (4)

3 years ago

_get_list_table(): Requiring WP_Comments_List_Table before requiring WP_Post_Comments_List_Table

#1 @tyxla
3 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 4.4

#3 @SergeyBiryukov
3 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 34231:

Comments: Fix a fatal error in Comments meta box after [34223].

Props tyxla.
Fixes #33893. See #33413.

Note: See TracTickets for help on using tickets.