[wp-trac] [WordPress Trac] #38656: wpautop incorrectly handling paragraphs within block elements

WordPress Trac noreply at wordpress.org
Tue Mar 26 15:02:11 UTC 2019


#38656: wpautop incorrectly handling paragraphs within block elements
-------------------------------------------------+-------------------------
 Reporter:  pento                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Formatting                           |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-    |     Focuses:
  testing needs-refresh                          |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * keywords:  has-patch needs-unit-tests needs-testing => has-patch needs-
     unit-tests needs-testing needs-refresh
 * version:   => 5.0


Comment:

 I was able to reproduce this bug on `trunk`. [attachment:"38656.4.diff"]
 is a refresh to apply cleanly after coding standards changes.

 Running the unit tests using `--group 38656` passes, but there is a
 failure elsewhere in
 `test_that_wpautop_doses_not_add_extra_closing_p_in_figure()` when running
 `--group formatting`.

 When testing in the editor, I see the `This block contains unexpected or
 invalid content` message when switching back to visual editor after
 entering the test markup in the description.

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


More information about the wp-trac mailing list