[wp-trac] [WordPress Trac] #24143: When define('WP_CONTENT_DIR', 'your-dir') twentythirteen - The theme directory does not exist.
WordPress Trac
noreply at wordpress.org
Mon May 6 09:14:58 UTC 2013
#24143: When define('WP_CONTENT_DIR', 'your-dir') twentythirteen - The theme
directory does not exist.
-------------------------------+------------------------------
Reporter: azizur | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version: 3.4
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by azizur):
I have now tested it using absolute path and found another issue.
Now if you have (in wp-config.php):
{{{
define('WP_CONTENT_DIR', '/DocRoot/wp-content/'); // <- absolute path
define('WP_CONTENT_URL', 'your-url');
}}}
Then use a 'mu-plugin' that register the additional theme directory.
{{{
register_theme_directory('/DocRoot/wordpress/wp-content/themes'); // <-
absolute path
}}}
Now try to customize the theme.
{{{
Fatal error: Call to a member function theme() on a non-object in
/data/site.com/wordpress/wp-admin/customize.php on line 66
}}}
[http://codex.wordpress.org/Editing_wp-config.php#Moving_wp-content_folder
Moving wp-content folder] Documentation may need to be updated to mention
about absolute vs relative path so its clear in its example given.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24143#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list