Make WordPress Core

Opened 2 years ago

Last modified 4 weeks ago

#25473 reopened defect (bug)

wp_text_diff creates wrong number of columns if title arguments are set

Reported by: joedolson Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 3.6.1
Component: Revisions Keywords: has-patch 2nd-opinion
Focuses: Cc:


The 3rd parameter for wp_text_diff is an array with 3 possible arguments. If any of those arguments are provided, the thead element will contain 4 columns, but the text diff renderer has only produced 3 columns of data since version 3.6.

Patch revises wp_text_diff to generate only 3 columns.

Attachments (3)

25473.wp-text-diff.patch (758 bytes) - added by joedolson 2 years ago.
Patch to wp_text_diff
markup-table.diff (711 bytes) - added by mehulkaklotar 4 weeks ago.
th with colspan 2
Screenshot from 2015-07-31 12:22:33.png (14.1 KB) - added by mehulkaklotar 4 weeks ago.
td and th creates problem in markup and display

Download all attachments as: .zip

Change History (12)

@joedolson2 years ago

Patch to wp_text_diff

comment:1 @c4xpl0siv323 months ago

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

Tested and fine

comment:2 @c4xpl0siv323 months ago

  • Keywords 2nd-opinion close added

comment:3 @joedolson23 months ago

Can I ask how you tested this? Based on my check and code review, this is very clearlya bug, though it's not expressed in the built-in usage of revisions. I'm open to the possibility I'm missing something, but would appreciate knowing what I'm missing.

comment:4 @markoheijnen21 months ago

  • Milestone Awaiting Review deleted

Clearing out the milestones for closed tickets on Awaiting Review

comment:5 @zodiac19784 months ago

  • Keywords close removed
  • Resolution worksforme deleted
  • Status changed from closed to reopened

I can reproduce this bug. Re-opening.

comment:6 @zodiac19784 months ago

If you omit the show_split_view argument there will be just one column in the table header which is also wrong and not documented in Codex.


comment:7 @SergeyBiryukov4 months ago

  • Milestone set to Awaiting Review

comment:8 @mehulkaklotar4 weeks ago

When set title args, it is taking correct markup. But for the title_left and title_right. it should use colspan 2 to matchup with tbody td elements.

@mehulkaklotar4 weeks ago

th with colspan 2

@mehulkaklotar4 weeks ago

td and th creates problem in markup and display

comment:9 @mehulkaklotar4 weeks ago

  • Severity changed from normal to major
Note: See TracTickets for help on using tickets.