Opened 7 years ago
Closed 7 years ago
#40673 closed defect (bug) (fixed)
WP Oembed in Multisite fails when embedded post comes from a different site of a network.
Reported by: | imath | Owned by: | swissspidy |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.5.3 |
Component: | Embeds | Keywords: | needs-patch |
Focuses: | multisite | Cc: |
Description
Steps to reproduce:
1/ Create a post in main site.
2/ Create a new site
3/ Go the dashboard of this site
4/ Create a new post and paste in it the permalink of the post created at step 1.
This happens when the post we're trying to embed comes from a different site. I've added some unit tests to illustrate the issue. Without the patch, these two unit tests are failing:
- test_wp_filter_pre_oembed_result_multisite_sub_othersub
- test_wp_filter_pre_oembed_result_multisite_sub_main
Attachments (3)
Change History (15)
#3
@
7 years ago
- Milestone changed from Awaiting Review to 4.9
- Owner set to swissspidy
- Status changed from new to reviewing
This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.
7 years ago
This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.
7 years ago
#6
@
7 years ago
- Keywords commit added
Just did two minor tweaks in 40673.diff. I think this is good to go.
#8
@
7 years ago
- Keywords needs-patch added; has-patch has-unit-tests commit removed
- Resolution fixed deleted
- Status changed from closed to reopened
The use of ms_is_switched()
doesn't seem to be right, see #38253 for a previous case.
Note: See
TracTickets for help on using
tickets.
@swissspidy How does 40673.patch look to you?