wp_content_foldername gets stripped in wp-config.php
-
Hi Corey,
I’ve encountered a problem duplicating my local wordpress instances (I’m using xampp).
My installation uses a subdirectory for wordpress core files and a custom directory for wp-content. My wp-config.php looks like this:define('WP_SITEURL', 'http://localhost/mylocalsite/src/'); // my wordpress installation define('WP_HOME', 'http://localhost/mylocalsite/'); define ('WP_CONTENT_FOLDERNAME', 'data'); // custom wp-content folder define( 'UPLOADS', ''.'files' ); // custom wp-content/uploads folder define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME) ; define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME);I#ve never had any problems but in recent versions of duplicator the foldername definitions get somehow stripped after duplication:
define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME) ; define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME);becomes
define ('WP_CONTENT_DIR', 'ABSPATH'); define('WP_CONTENT_URL', 'WP_SITEURL');Actually no big deal to manually adjust the wp-config.php but in previous versions those lines have been preserved during the building process.
Any Ideas? I have to admit, that my custom folder definitions might be quite clunky or deprecated.Thanks for this indispensable plugin!
The topic ‘wp_content_foldername gets stripped in wp-config.php’ is closed to new replies.