[wp-trac] [WordPress Trac] #35630: oEmed Link Handling Can't Be Refired

WordPress Trac noreply at wordpress.org
Wed Jan 27 16:40:01 UTC 2016


#35630: oEmed Link Handling Can't Be Refired
--------------------------+-----------------------------
 Reporter:  JamesDiGioia  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 On page load, the oEmbed script adds a click handler to anchor tags to
 postMessage to the parent window to handle and redirect the user. I have
 two questions/issues about this.

 First, i'm doing syntax highlighting in the iframe, and part of that is to
 add (if the user is logged in) a link to the edit the code on the backend.
 Because the initial oEmbed script has already run by the time this
 happens, I have to manually add that handler myself, which results in some
 code duplication between my plugin and WordPress. Is it possible to
 mitigate this issue by making the mechanism available outside of the IIFE
 scope?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35630>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list