Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#50477 closed defect (bug) (fixed)

Description of $br for wpautop()

Reported by: stevenlinx's profile stevenlinx Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.5 Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch
Focuses: ui Cc:


$br should mention "Line breaks within <script>, <style>, and <svg> sections are not affected".

Attachments (1)

50477.diff (745 bytes) - added by stevenlinx 4 years ago.

Download all attachments as: .zip

Change History (4)

4 years ago

#1 @stevenlinx
4 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 5.5

#3 @SergeyBiryukov
4 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 48174:

Docs: Add a note that the $br parameter of wpautop() does not affect line breaks within <script>, <style>, and <svg> tags.

Props stevenlinx.
Fixes #50477.

Note: See TracTickets for help on using tickets.