[Plugin: W3 Total Cache] Media Library Import – Subdirectory Bug
-
I was attempting to import the media library of an existing site, and although the import was working correctly, the URLs placed back into the article were broken. It seems to be an error when your site is not at the root of your domain.
So what should have been:
[SITE]/[SUBDIR]/wp-content/uploads/2010/03/image.jpgwas coming through (missing slash):
[SITE]/[SUBDIR]wp-content/uploads/2010/03/image.jpgMy fix was to add this after line 690 in /lib/W3/Plugin/Cdn.php
if (!preg_match('/\/$/', $site_url)) { $site_url .= '/'; }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: W3 Total Cache] Media Library Import – Subdirectory Bug’ is closed to new replies.