Describe the bug
The Multisite Global Media plugin doesn't hook into wp_get_attachment_url, which impacts some of our blocks when they reference media uploaded to a different site.
Blocks understood to be affected:
Header/banner (background video attribute)
Download block (file URI retrieval in render)
To Reproduce
Steps to reproduce the behaviour:
On a multisite, activate the Multisite Global Media plugin
On the main site, upload a video
On a subsite that isn't the main site, visit WP Admin
Create/Edit a post/page
Insert a Header block
Set the background video to be the video uploaded in step 2
Save and view the post/page
See that the video doesn't render in the Header
Expected behaviour
The video should render
Actual behaviour
The video doesn't render. The <video> and <source> tags are inserted into the DOM, but the src attribute of the <source> tag is missing.
Describe the bug
The Multisite Global Media plugin doesn't hook into
wp_get_attachment_url
, which impacts some of our blocks when they reference media uploaded to a different site.Blocks understood to be affected:
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
The video should render
Actual behaviour
The video doesn't render. The
<video>
and<source>
tags are inserted into the DOM, but thesrc
attribute of the<source>
tag is missing.Link to a page where the bug is reproduced in isolation (optional)
https://isaidotorgstg.wpengine.com/es/latest/news/2024/01/test-header-block-video-spanish/
Screenshots
Platform:
https://www.whatsmybrowser.org/b/9Q2N5