Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#13886 closed defect (bug) (invalid)

Reply from comments panel breaks grid layout

Reported by: GDragoN Owned by:
Priority: normal Milestone:
Component: Administration Version: 3.0
Severity: normal Keywords:
Cc:

Description

If any plugin adds columns to a comments grid (edit-comments.php), if you reply directly from that panel, comment is saved, but AJAX returns response that is rendered to ignore added columns. This causes the response cells to be displayed in invalid positions.

AJAX response for reply needs also to pass through columns filter for edit-comments. Other panels that use similar method work fine (edit.php for instance).

Attachments (1)

comments_broken.png (9.5 KB) - added by GDragoN 3 years ago.

Download all attachments as: .zip

Change History (7)

GDragoN3 years ago

Can you give us the plugin/code which adds a custom columns, please?

  • Keywords reporter-feedback added
  • Milestone changed from 3.0 to Unassigned

I tried it with this plugin and it works for me, Which browser do you use?

It seams that there are different filters executed on this grid when displayed first and later for ajax call. I will recheck my plugin.

To display the comment row admin-ajax.php uses _wp_comment_row(). To get the columns it uses get_column_headers() and there is the filter manage_' . $screen->id . '_columns.

  • Resolution set to invalid
  • Status changed from new to closed

OK, this can be closed. My code had something that filtered out admin-ajax based request.

  • Keywords reporter-feedback removed
  • Milestone Unassigned deleted
Note: See TracTickets for help on using tickets.