[wp-trac] [WordPress Trac] #44074: oEmbed with many <pre> tags do not work
WordPress Trac
noreply at wordpress.org
Mon May 14 14:31:21 UTC 2018
#44074: oEmbed with many <pre> tags do not work
--------------------------+-----------------------------
Reporter: jagszent | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: trunk
Severity: minor | Keywords:
Focuses: |
--------------------------+-----------------------------
If an oEmbed has more than ten {{{<pre>}}} tags
{{{WP_oEmbed::_strip_newlines}}} (called by {{{oembed_dataparse}}}}
filter) returns a wrong result for it.
All {{{<pre>}}} tags get temporarily replaced by a token, the newline
stripping gets done and then the tokens {{{<pre>}}} get replaced back to
their HTML. The tokens unfortunately are just {{{__PRE__}}} plus a counter
(e.g. {{{__PRE__0}}}, {{{__PRE__1}}}) Thus if there are more than ten
{{{<pre>}}} tags there will be tokens like {{{__PRE__10}}}. These
obviously clash with previous tokens.
Granted, this is ''quite'' uncommon but nonetheless it should be fixed in
my opinion.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44074>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list