[wp-trac] [WordPress Trac] #4857: More issues with wpautop()

WordPress Trac noreply at wordpress.org
Tue Sep 13 06:02:25 UTC 2016


#4857: More issues with wpautop()
--------------------------------------------------+---------------------
 Reporter:  Viper007Bond                          |       Owner:  pento
     Type:  defect (bug)                          |      Status:  closed
 Priority:  low                                   |   Milestone:  4.7
Component:  Formatting                            |     Version:  2.3
 Severity:  normal                                |  Resolution:  fixed
 Keywords:  wpautop needs-patch needs-unit-tests  |     Focuses:
--------------------------------------------------+---------------------

Comment (by pento):

 In [changeset:"38594"]:
 {{{
 #!CommitTicketReference repository="" revision="38594"
 Formatting: Update `autop()` to match `wpautop()`.

 [38592] changed the behaviour of `wpautop()` , so it's nice to change
 `autop()` to match.

 Interestingly, this change isn't necessary for the functionality to work -
 #4857 didn't affect content that had been run through `autop()` at some
 point, as `autop()` would add a single line break before block elements,
 then `wpautop()` would later add a second line break, making it work
 correctly.

 Props nacin for finding out about [38592] on Twitter, and DMing me to
 remind me to review `autop()`.
 See #4857.
 }}}

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


More information about the wp-trac mailing list