WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43100, comment 3


Ignore:
Timestamp:
01/23/2018 05:53:50 PM (3 years ago)
Author:
wiselyfoolish
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43100, comment 3

    initial v1  
    1 yup this affects empty paragraphs only.
     1Yup.  This affects empty paragraphs only.
    22
    33Current workaround solution is to strip empty paragraph tags from the text before running it through wpautop()
     
    1010$text = preg_replace('@<p.*?></p>@', '', $text);
    1111$text = wpautop($text);
    12 }}}
     12?>
     13}}}