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:
parent
9f14967ff0
commit
a659c36414
|
@ -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 ) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue