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.

git-svn-id: https://develop.svn.wordpress.org/trunk@48174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-06-26 09:18:57 +00:00
parent 5b90ea41b5
commit 37214834c3

View File

@ -435,7 +435,8 @@ function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) {
* *
* @param string $pee The text which has to be formatted. * @param string $pee The text which has to be formatted.
* @param bool $br Optional. If set, this will convert all remaining line-breaks * @param bool $br Optional. If set, this will convert all remaining line-breaks
* after paragraphing. Default true. * after paragraphing. Line breaks within `<script>`, `<style>`,
* and `<svg>` tags are not affected. Default true.
* @return string Text which has been converted into correct paragraph tags. * @return string Text which has been converted into correct paragraph tags.
*/ */
function wpautop( $pee, $br = true ) { function wpautop( $pee, $br = true ) {