Broken for multisites
-
I have checked this plugin and it has serious bug with multisite install – it will add medias to the library ALWAYS.
The problem is that get_attachment_id_from_src function split the path using WP_CONTENT_URL, which is not the case with multisite where images have url as follow:
$parse_url = explode( parse_url( WP_CONTENT_URL, PHP_URL_PATH ), $url );
// https://XXX.com/files/2014/06/89e9b5f396cce783703073a3adbea1e2.jpg
In such case check will fail and file will be added to library. I have learned it the hard way: https://codeone.pl/ss/ss-2014-06-20_10-47-37-001.png
As you can see there is 60 images used and 120000 added (not joined anywhere). All images are the same ??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Broken for multisites’ is closed to new replies.