[wp-hackers] register_theme_directory issue or ???

Peter Westwood peter.westwood at ftwr.co.uk
Thu Nov 4 18:08:43 UTC 2010


On 4 Nov 2010, at 17:24, Rich Pedley wrote:

> 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?
> 

Pretty sure BuddyPress uses register_theme_directory() it was introduced for it :-)

> question 2:
> Now is this a windows path issue, me being brain dead, or something else entirely?



Possibly a path issue - how do the paths compare to what you get on the server?

Cheers
-- 
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5



More information about the wp-hackers mailing list