[wp-trac] [WordPress Trac] #45052: WP Oembed in multisite fail when the permalink structure is not default

WordPress Trac noreply at wordpress.org
Fri Oct 5 05:36:34 UTC 2018


#45052: WP Oembed in multisite fail when the permalink structure is not default
--------------------------+-----------------------------
 Reporter:  imath         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:  multisite     |
--------------------------+-----------------------------
 This is a follow up of #40673

 In case blogs are using pretty urls (which should be the most common
 case), when you try to embed a post from the main site into a sub site,
 the embedded URL is not interpreted and we keep that simple URL.

 Thats because the main site is using a reserved blog prefix {{{/blog}}} we
 need to remove before using {{{get_sites()}}}. I've added a unit test to
 illustrate the bug.

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


More information about the wp-trac mailing list