Make WordPress Core


Ignore:
Timestamp:
06/26/2020 09:18:57 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r48121 r48174  
    436436 * @param string $pee The text which has to be formatted.
    437437 * @param bool   $br  Optional. If set, this will convert all remaining line-breaks
    438  *                    after paragraphing. Default true.
     438 *                    after paragraphing. Line breaks within `<script>`, `<style>`,
     439 *                    and `<svg>` tags are not affected. Default true.
    439440 * @return string Text which has been converted into correct paragraph tags.
    440441 */
Note: See TracChangeset for help on using the changeset viewer.