You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The WP core function wp_uploads_dir still returns the subsite directory paths and not the directory for the main media library as defined in the filter network-media-library/site_id.
This means that instead of returning wp-content/uploads/, it returns wp-content/uploads/sites/2.
The issue is seen when using the Fancy Media module in WP Bakery Page Builder. The image is still displayed, but not resized to the correct dimensions, because it cannot find the file in wp-content/uploads/sites/2.
The WP core function wp_uploads_dir still returns the subsite directory paths and not the directory for the main media library as defined in the filter network-media-library/site_id.
This means that instead of returning wp-content/uploads/, it returns wp-content/uploads/sites/2.
The issue is seen when using the Fancy Media module in WP Bakery Page Builder. The image is still displayed, but not resized to the correct dimensions, because it cannot find the file in wp-content/uploads/sites/2.
I found a workaround by adding this filter
Ideally, we'd want this to use the exact path of the media library we chose in network-media-library/site_id.
The text was updated successfully, but these errors were encountered: