[Resolved] 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 );
In such case check will fail and file will be added to library. I have learned it the hard way: http://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 🙂
- The topic ‘[Resolved] Broken for multisites’ is closed to new replies.