Changing wp-content directory (Multisite)
-
Hi–
I have a multisite install and am trying to change the wp-content directory and am seeing some weird behavior:
Lets say I define the following:
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/content' ); define( 'WP_CONTENT_URL', 'https://'.$_SERVER['HTTP_HOST'].'/content');
plugins_url() will now return
https://www.domain.coms
, instead ofhttps://www.domain.com/content/plugins
. That is, it returns my domain, plus the last character of the ACTUAL plugins url (s is the last letter of plugins). Although wordpress finds and runs all of my activated plugins, wp_enqued plugin scripts and styles cannot be loaded because the plugins_url() is invalid.content_url()
returns the correct value of the new content directory.Changing just the plugins directory and url in wp-config.php has the same behavior.
Any advice would be appreciated! Thank you.
- The topic ‘Changing wp-content directory (Multisite)’ is closed to new replies.