[wp-trac] [WordPress Trac] #25387: Autoembeds don't work with paragraphs
WordPress Trac
noreply at wordpress.org
Sat Sep 5 14:36:32 UTC 2015
#25387: Autoembeds don't work with paragraphs
-------------------------------------+-----------------------------
Reporter: Looimaster | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Embeds | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+-----------------------------
Comment (by redsweater):
@seanchayes I don't think you should focus on whether the switch from
Text to Visual and back happens to generate the desired outcome, that's
sort of a side case to the main gist of this case IMHO, which is that
fundamentally at the core the autoembed mechanism fails to generate the
desired embeds with specific content.
Consider that the content for any given blog post may never pass through
the WordPress admin panel's "Visual" editor. It can't be assumed. Here is
an easy way to reproduce the existing bug with top of trunk WordPress from
the web admin screen:
1. Create a new post.
2. Switch to Text mode editing.
3. Type or paste:
{{{
<p>https://www.youtube.com/watch?v=Mb9dL0cb6ho</p>
}}}
4. Publish.
Also please consider that simply tacking some behavior on to the Text
editor in WordPress's web admin panel is not a sufficient fix, because the
content may also have come from an automated source within the blog (e.g.
from a plugin, etc), or it may have been submitted through the WordPress
XMLRPC API or REST API.
The fix has to be in the core autoembed detection/substitution mechanism
to be complete.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/25387#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list