[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
Sun Apr 21 05:23:11 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:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by dd32):

 {{{
 register_theme_directory('DocRoot/wp-content/themes');
 }}}
 does work, but you need to take into consideration two things: 1. If you
 use a relative path, it's relative to WP_CONTENT_DIR 2. You can pass an
 absolute path in

 So, this configuration worksforme, and twentythirteen is loaded correctly
 {{{
 WordPress: /media/sf_www/wordpress-commit/
 WP_CONTENT_DIR in wp-config.php: /media/sf_www/content/
 /media/sf_www/content/mu-plugin/themes.php:  register_theme_directory(
 '/media/sf_www/wordpress-commit/wp-content/themes/' );
 }}}

 Triple check the path's you're using in the example you've given, if any
 are relative, or don't exist, you'll run into the breakage you're seeing.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24143#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list