[wp-trac] [WordPress Trac] #28195: Preview embeds with wpview and auto embed on paste

WordPress Trac noreply at wordpress.org
Mon Jun 30 05:43:11 UTC 2014


#28195: Preview embeds with wpview and auto embed on paste
---------------------------+-------------------------
 Reporter:  avryl          |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  4.0
Component:  Media          |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-testing  |     Focuses:  javascript
---------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:10 wonderboymusic]:
 > [attachment:28195.3.diff 28195.3.diff] makes sure the response from
 `->run_shortcode()` is passed to `do_shortcode()` when it matches
 `get_shortcode_regex()`, which is what happens when you pass an audio or
 video file.

 `WP_Embed::run_shortcode()` already calls `do_shortcode()`, is there a
 need to repeat it? Once `$parsed = $wp_embed->run_shortcode( $shortcode
 );` the `$parsed = do_shortcode( $parsed );` is trying to find shortcodes
 in the embed html returned by the oEmbed provider.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28195#comment:64>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list