[wp-trac] [WordPress Trac] #24615: Non-embedded urls in paragraphs are rendered as paragraphs.
WordPress Trac
noreply at wordpress.org
Fri Jun 21 04:31:14 UTC 2013
#24615: Non-embedded urls in paragraphs are rendered as paragraphs.
--------------------------+------------------------------
Reporter: mfields | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 3.2
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Changes (by Viper007Bond):
* keywords: => needs-patch
Comment:
This is due to `WP_Embed` trying to embed the URL. When it returns, it
does `return "\n$return\n";` which IIRC was because the regex is including
new lines in it's match and so that's there to prevent stripping them.
Looks like there's a bug in the logic though because it shouldn't be
resulting in extra line breaks being introduces.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24615#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list