[wp-trac] [WordPress Trac] #63148: wpautop() formatting function generate invalid HTML if the text end with an empty <p> tag

WordPress Trac noreply at wordpress.org
Mon Dec 1 02:52:23 UTC 2025


#63148: wpautop() formatting function generate invalid HTML if the text end with an
empty <p> tag
-------------------------------------------------+-------------------------
 Reporter:  gillesdoge                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Formatting                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-test-info has-patch needs-unit-  |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by wildworks):

 * keywords:  has-test-info has-patch => has-test-info has-patch needs-unit-
     tests
 * version:  trunk =>


Comment:

 I'm reviewing this ticket in preparation for a 6.9 dry run.

 I'm removing the version field, since at least this issue isn't an issue
 that occurred in an unreleased development branch.

 Additionally, unit tests are needed to move this ticket forward.

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


More information about the wp-trac mailing list