[wp-trac] [WordPress Trac] #39373: url_to_postid() returning postid for external url

WordPress Trac noreply at wordpress.org
Thu Dec 22 18:05:59 UTC 2016


#39373: url_to_postid() returning postid for external url
--------------------------+------------------------------
 Reporter:  jkhongusc     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by troutacular):

 As jkhongusc described, the iframe being returned was being altered to
 being the post itself.  Due to this site being a production site, we have
 applied a filter patch as noted in
 [https://core.trac.wordpress.org/ticket/37359 37359]:

 {{{
 remove_filter( 'pre_oembed_result', 'wp_filter_pre_oembed_result' );
 }}}


 The iframe source being returned before this patch was
 https://bedrosian.usc.edu/podcast/drown/embed/#?secret=z5fm4h1xpp


 {{{
 <iframe sandbox="allow-scripts" security="restricted"
 src="https://bedrosian.usc.edu/podcast/drown/embed/#?secret=z5fm4h1xpp"
 width="200" height="339" title="“Drown” — Bedrosian Center"
 frameborder="0" marginwidth="0" marginheight="0" scrolling="no" class="wp-
 embedded-content" data-secret="z5fm4h1xpp"></iframe>
 }}}

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


More information about the wp-trac mailing list