Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#50477 closed defect (bug) (fixed)

Description of $br for wpautop()

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

Description

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

Attachments (1)

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

Download all attachments as: .zip

Change History (4)

@stevenlinx
6 years ago

#1 @stevenlinx
6 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review5.5

#3 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolutionfixed
  • Status newclosed

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.