[wp-trac] [WordPress Trac] #42402: When viewing a revision with show_split_view set to false, the title is still shown in two columns

WordPress Trac noreply at wordpress.org
Wed Nov 1 21:17:04 UTC 2017


#42402: When viewing a revision with show_split_view set to false, the title is
still shown in two columns
----------------------------+----------------------------------------
 Reporter:  johnbillion     |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  low             |  Milestone:  Awaiting Review
Component:  Revisions       |    Version:
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:  administration  |
----------------------------+----------------------------------------
 The `revision_text_diff_options` filter can be used to set the
 `show_split_view` argument to `false`, which means when viewing the
 revisions screen for a post the differences will be shown inline instead
 of in two columns.

 {{{#!php
 add_filter( 'revision_text_diff_options', function( array $args ) {
         $args['show_split_view'] = false;
         return $args;
 } );
 }}}

 When this is the case, the Title field is still shown in two columns
 instead of one if the title has not been changed. If the title has been
 changed, it correctly appears in one column.

 [[Image(https://i.imgur.com/0Tc1ANM.png)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42402>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list