[wp-trac] [WordPress Trac] #43100: Unexpected results from wpautop
WordPress Trac
noreply at wordpress.org
Tue Jan 23 17:48:37 UTC 2018
- Previous message: [wp-trac] [WordPress Trac] #43100: Unexpected results from wpautop
- Next message: [wp-trac] [WordPress Trac] Batch modify: #42586, #42850, #15397, #38332, #39859, #41316, #42390, #42450, #42467, #42486, #42495, #42497, #42561, #42565, #42597, #42604, #42612, #42643, #42646, #42655, #42658, #42674, #42686, #42693, #42695, #42697, #42722, #42724, #42740, #42785, #42802, #42849, #42860, #42862, #42965, #42968, #42975, #42991, #43003, #43005, #43007, #43016, #43088
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
#43100: Unexpected results from wpautop
--------------------------+------------------------------
Reporter: pross | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by wiselyfoolish):
yup this affects empty paragraphs only.
Current workaround solution is to strip empty paragraph tags from the text
before running it through wpautop()
Example:
{{{#!php
<?php
$text = '<p>First paragraph</p><p></p><p>Second Actual Paragraph</p>';
$text = preg_replace('@<p.*?></p>@', '', $text);
$text = wpautop($text);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43100#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
- Previous message: [wp-trac] [WordPress Trac] #43100: Unexpected results from wpautop
- Next message: [wp-trac] [WordPress Trac] Batch modify: #42586, #42850, #15397, #38332, #39859, #41316, #42390, #42450, #42467, #42486, #42495, #42497, #42561, #42565, #42597, #42604, #42612, #42643, #42646, #42655, #42658, #42674, #42686, #42693, #42695, #42697, #42722, #42724, #42740, #42785, #42802, #42849, #42860, #42862, #42965, #42968, #42975, #42991, #43003, #43005, #43007, #43016, #43088
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the wp-trac
mailing list