[wp-hackers] register_theme_directory issue or ???
Rich Pedley
elfin at elfden.co.uk
Thu Nov 4 17:24:27 UTC 2010
I'm trying to test the development version of the bbPress plugin
locally and am unable to because activating the child theme is
producing some interesting and invalid results:
get_theme_roots() produces this:
Array
(
[bbp-twentyten] =>
E:\htdocs\wpcurrent\wp-content\plugins\bbpress//bbp-themes
[twentyten] => /themes
)
get_stylesheet() produces this:
bbp-twentyten
but get_theme_root( get_stylesheet() ) produces this:
E:\htdocs\wpcurrent/wp-contentE:\htdocs\wpcurrent\wp-content\plugins\bbpress//bbp-themes
and bloginfo( 'stylesheet_url' ) produces this:
http://127.0.0.1/wpcurrent/wp-content/E:\htdocs\wpcurrent\wp-content\plugins\bbpress//bbp-themes/bbp-twentyten/style.css
The plugin adds a location for child theme directory via
register_theme_directory:
E:\htdocs\wpcurrent\wp-content\plugins\bbpress/bbp-themes/
and appears to be registered correctly(but what do I know?) - and it
does work on my web host, just not locally!
Local server is EasyPHP:
PHP 5.3.2
apache 2.2.15
MySQL 5.1.45
running on Windows 7
So question 1:
anyone know of another plugin that has a child theme in it that I
could test?
question 2:
Now is this a windows path issue, me being brain dead, or something
else entirely?
Rich
More information about the wp-hackers
mailing list