[wp-trac] [WordPress Trac] #49683: Multisite oEmbeds of URLs ignore query parameters

WordPress Trac noreply at wordpress.org
Mon Mar 23 02:47:04 UTC 2020


#49683: Multisite oEmbeds of URLs ignore query parameters
--------------------------+-----------------------------
 Reporter:  dd32          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 When running as a Multisite,
 [https://core.trac.wordpress.org/browser/tags/5.3/src/wp-
 includes/embed.php?marks=576,579-613#L567 WordPress oEmbed will embed
 links to other network sites without making a HTTP request], it does this
 by switching to the blog looking up by domain/path.

 Unfortunately, it seems that it only operates on the `path` component and
 ignores the `query` component, and as a result, will embed
 `https://other.network.site/?s=test` as `https://other.network.site/`
 changing the meaning of the embed.

 A real example is that https://developer.wordpress.org/?s=get_cat will not
 embed anywhere, except on the WordPress.org network (For example, in a
 support request) where it ends up as an embed for
 `https://developer.wordpress.org/`.

 This was originally reported as #meta3916

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


More information about the wp-trac mailing list