Small request for multi-site installs and proper site name resolution
-
Can these lines be edited to pull the proper current blog site not just the site URL? When I use this on a network install the images and such are always directed back to the network site, and therefore CDN re-writes with W3TotalCache don’t work. I’m sure it’s a simple change of the use of site_url to something else. I was messing with it but I cannot figure out which to change it to. Usually to contend for the blogs.dir you need something with get_bloginfo()
Cheers!
/* Check to see if locations are changed in wp-config */ if ( !defined('WP_CONTENT_URL') ) { define('SMW_PLUGINPATH', site_url('/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/')); define('SMW_PLUGINDIR', ABSPATH.'/wp-content/plugins/'.plugin_basename(dirname(__FILE__)).'/'); } else { define('SMW_PLUGINPATH',WP_CONTENT_URL.'/plugins/'.plugin_basename(dirname(__FILE__)).'/'); define('SMW_PLUGINDIR',WP_CONTENT_DIR.'/plugins/'.plugin_basename(dirname(__FILE__)).'/'); }
https://www.ads-software.com/extend/plugins/social-media-widget/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Small request for multi-site installs and proper site name resolution’ is closed to new replies.