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.
Built from https://develop.svn.wordpress.org/trunk@48174


git-svn-id: http://core.svn.wordpress.org/trunk@47943 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-06-26 09:20:11 +00:00
parent 9f14967ff0
commit a659c36414
2 changed files with 3 additions and 2 deletions

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 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.
*/
function wpautop( $pee, $br = true ) {

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-48173';
$wp_version = '5.5-alpha-48174';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.