WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 6 weeks ago

#47224 closed defect (bug) (fixed)

Document the `show_split_view` argument for `wp_text_diff()`

Reported by: jeremyfelt Owned by: adamsilverstein
Milestone: 5.3 Priority: normal
Severity: normal Version: 2.6
Component: Revisions Keywords: good-first-bug has-patch
Focuses: docs Cc:

Description

wp_text_diff() accepts an optional $args array of title, title_left, title_right, and show_split_view. Of these, show_split_view is not documented.

It's possible that other arguments can be passed on to create WP_Text_Diff_Renderer_Table, but this at least covers those that are used in wp_text_diff() itself.

Attachments (1)

47224.diff (1.3 KB) - added by riddhiehta02 2 months ago.
Added description for "show_split_view" in the file

Download all attachments as: .zip

Change History (6)

#1 @jeremyfelt
4 months ago

  • Focuses docs added

#2 @adamsilverstein
4 months ago

  • Owner set to adamsilverstein
  • Status changed from new to assigned

@riddhiehta02
2 months ago

Added description for "show_split_view" in the file

#3 @riddhiehta02
2 months ago

  • Keywords has-patch added; needs-patch removed

#4 @SergeyBiryukov
2 months ago

  • Milestone changed from Awaiting Review to 5.3

#5 @SergeyBiryukov
6 weeks ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 45778:

Docs: Document the show_split_view argument for wp_text_diff().

Convert $args array documentation to hash notation.

Props riddhiehta02, jeremyfelt, SergeyBiryukov.
Fixes #47224.

Note: See TracTickets for help on using tickets.