You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So that your issue can be reproduced, please provide details on the specific WP constants and/or admin options (including their customized values) that have been modified for your configuration.
Description of Problem
In a specific Wordpress configuration, there is an issue with the paths used to load the plugin resources.
Details
Wordpress is installed in a subdirectory
/wp/
- while the content folder sits along side in/wp-content/
So :
base path is
https://www.examplesite.com/wp
wp-content path is
https://www.examplesite.com/wp-content
In this scenario, the plugin attempts to load the following :
https://www.examplesite.com/wp/-content/plugins/simple-lightbox/client/css/app.css?ver=2.9.3
As you can see, it's mangled this part of the path :
/wp/-content/
I think the root of the problem lies in the
get_relative_path()
function in/simple-lightbox/includes/class.utilities.php
In here we have :
$relative
ishttps://www.examplesite.com/wp
$path
ishttps://www.examplesite.com/wp-content/plugins/simple-lightbox
With these values,
$path = substr( $path, strlen( $relative ) );
will return-content/plugins/simple-lightbox
The text was updated successfully, but these errors were encountered: