[wp-trac] [WordPress Trac] #40135: wpautop adds a extra </p>
WordPress Trac
noreply at wordpress.org
Fri Mar 2 19:25:39 UTC 2018
#40135: wpautop adds a extra </p>
--------------------------+------------------------------
Reporter: jim5471 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 4.7.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by ayubi):
I am new here :) really didn't know how to show the code that i have
written like others!
i wrote this line of code for fixing this bug and also have tested
{{{#!php
<?php
$pee = preg_replace('/(img\s)?(^">|<\/p>)/', "", $pee);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40135#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list