Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#13886 closed defect (bug) (invalid)

Reply from comments panel breaks grid layout

Reported by: gdragon's profile GDragoN Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0
Component: Administration Keywords:
Focuses: Cc:


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 14 years ago.

Download all attachments as: .zip

Change History (7)

#1 @ocean90
14 years ago

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

#2 @ocean90
14 years ago

  • 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?

#3 @GDragoN
14 years ago

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

#4 @ocean90
14 years ago

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.

#5 @GDragoN
14 years ago

  • 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.

#6 @ocean90
14 years ago

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