[Plugin: NextGEN Gallery] NGGALLERY_URLPATH determined incorrectly in some cases
-
NGGALLERY_URLPATH is defined as:
define(‘NGGALLERY_URLPATH’, WP_PLUGIN_URL . ‘/’ . plugin_basename( dirname(__FILE__) ) . ‘/’ );this results in wrong stylesheet/javascript urls if the wordpress installation directory is symlinked like I have:
/var/www/wordpress is a symlink to /var/www/wordpress-2.8.4 and wordpress path is configured as /var/www/wordpress.
In this case the gallery includes stylesheets for example as:
<link rel=’stylesheet’ id=’NextGEN-css’ href=’https://mysite.com/wp-content/plugins/var/www/wordpress-2.8.4/wp-content/plugins/nextgen-gallery/css/Black_Minimalism.css?ver=1.0.0′ type=’text/css’ media=’screen’ />
I’m not sure if this really is NextGEN’s fault since it looks like the wordpress’s plugin_basename -function doesn’t behave similarily with symlinks and directories which is expected since php’s dirname function is used…
- The topic ‘[Plugin: NextGEN Gallery] NGGALLERY_URLPATH determined incorrectly in some cases’ is closed to new replies.