[wp-trac] [WordPress Trac] #42531: Text is splitted into two paragraphs when switching editor tabs

WordPress Trac noreply at wordpress.org
Thu Dec 14 14:43:35 UTC 2017


#42531: Text is splitted into two paragraphs when switching editor tabs
-------------------------------------------+--------------------------
 Reporter:  ocean90                        |       Owner:  westonruter
     Type:  defect (bug)                   |      Status:  closed
 Priority:  normal                         |   Milestone:  4.9
Component:  Editor                         |     Version:  4.9
 Severity:  major                          |  Resolution:  fixed
 Keywords:  has-patch commit dev-reviewed  |     Focuses:  javascript
-------------------------------------------+--------------------------

Comment (by aduth):

 Another effect of changes introduced in r42178:

 Before:

 {{{
 switchEditors.wpautop( '' );
 // ""
 }}}

 After:

 {{{
 switchEditors.wpautop( '' );
 // "<br />\n"
 }}}

 In this instance, I'd consider it a regression, since the "Before"
 behavior matches that found in PHP's `wpautop`.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42531#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list