[wp-meta] [Making WordPress.org] #3889: Plugin Embeds: Download link not working

Making WordPress.org noreply at wordpress.org
Sat Oct 27 11:31:46 UTC 2018


#3889: Plugin Embeds: Download link not working
------------------------------+--------------------
 Reporter:  swissspidy        |      Owner:  (none)
     Type:  defect            |     Status:  new
 Priority:  normal            |  Milestone:
Component:  Plugin Directory  |   Keywords:
------------------------------+--------------------
 For various reasons, WordPress embeds (oEmbed) from a domain like
 `example.com` cannot contain links to URLs on any other host. Only links
 with identical hosts are allowed. See
 https://github.com/WordPress/WordPress/blob/da7a80d67fea29c2badfc538bfc01c8a585f0cbe
 /wp-includes/js/wp-embed.js#L82-L87 for the source code.

 Plugin embeds contain a "Get this plugin" link that leads to
 `download.wordpress.org/…`. However, since plugins are embedded from
 `wordpress.org`, the link won't work.

 Suggestion: just link to the plugin page or use something like
 `https://wordpress.org/plugins/<plugin>/download/` that then redirects to
 the ZIP file for download.

 Plugin embeds were introduced/optimized in #1396.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/3889>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list