[wp-trac] [WordPress Trac] #24341: the_post_format_audio() and the_post_format_video() don't work with [embed]

WordPress Trac noreply at wordpress.org
Wed May 15 20:01:38 UTC 2013


#24341: the_post_format_audio() and the_post_format_video() don't work with [embed]
--------------------------+--------------------
 Reporter:  greenshady    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  Post Formats  |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+--------------------

Comment (by kovshenin):

 The [embed] shortcode is different from all other shortcodes because it
 needs to run earlier (see `WP_Embed`) and is a no-op with `do_shortcode`.
 [attachment:24341.diff] checks the matched shortcode after running the
 regex and uses the special `run_shortcode` method if it's an [embed].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24341#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list