Why doesn’t WP_PLUGIN_DIR definition use DIRECTORY_SEPARATOR?
Whilst writing some code that backs-up a plugin, I hit a problem with ‘the wrong kind of directory slash’ on my windows dev environment. Tracking it through I find in default-constants.php:91 define( ‘WP_PLUGIN_DIR’, WP_CONTENT_DIR . ‘/plugins’ ); which is based on the following in default-constants.php:46 define( ‘WP_CONTENT_DIR’, ABSPATH . ‘wp-content’ ); and hence to the … Read more