mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-20 11:14:28 +00:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user