[wp-trac] [WordPress Trac] #32208: apply_filters('the_content') not working as expected in some cases

WordPress Trac noreply at wordpress.org
Thu Apr 30 14:23:10 UTC 2015


#32208: apply_filters('the_content') not working as expected in some cases
--------------------------+----------------------
 Reporter:  zabatonni     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Embeds        |     Version:  4.2.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => invalid
 * component:  Formatting => Embeds
 * milestone:  Awaiting Review =>


Comment:

 You should use
 [https://codex.wordpress.org/Function_Reference/wp_oembed_get
 wp_oembed_get()] directly:
 {{{
 echo wp_oembed_get( 'https://www.youtube.com/watch?v=NwJ7tfVj1pI' );
 }}}

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


More information about the wp-trac mailing list