We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The core get_attached_file function is returning false when trying to retrieve an image that is in the global media library.
get_attached_file
false
get_attached_file( $image_id )
Receive an image path in the response to get_attached_file( $image_id ).
Standard WordPress multisite setup
No response
A customer has raised a compatibility issue with one of our products, and we're looking for insight into how we can patch this.
Naturally, the switch_to_blog approach isn't working as there is more going on here. Any advice welcome!
switch_to_blog
The text was updated successfully, but these errors were encountered:
Same issue here.
Sorry, something went wrong.
No branches or pull requests
Description of the bug
The core
get_attached_file
function is returningfalse
when trying to retrieve an image that is in the global media library.Reproduction instructions
get_attached_file( $image_id )
Expected behavior
Receive an image path in the response to
get_attached_file( $image_id )
.Environment info
Standard WordPress multisite setup
Relevant log output
No response
Additional context
A customer has raised a compatibility issue with one of our products, and we're looking for insight into how we can patch this.
Naturally, the
switch_to_blog
approach isn't working as there is more going on here. Any advice welcome!Code of Conduct
The text was updated successfully, but these errors were encountered: