marcodeltongo / thematic

Automatically exported from code.google.com/p/thematic
0 stars 0 forks source link

Error in widgets-extensions.php with custom WP_CONTENT_DIR #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Move wp-content to a custom directory by defining WP_CONTENT_DIR in 
wp-config.php

What is expected?

widgets-extensions.php loads theme/child theme widgets from WP_CONTENT_DIR . 
'/themes/' . get_template() . '/widgets'

What happens instead?

widgets-extensions.php attempts loads theme/child theme widgets from 
ABSPATH . '/wp-content/themes/' . get_template() . '/widgets'

Potential fix:

use WP_CONTENT_DIR instead of ABSPATH.

Patch against SVN attached.

Original issue reported on code.google.com by travis.m...@techcrafted.com on 10 Mar 2011 at 5:43

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by eugene.m...@gmail.com on 17 Jan 2012 at 8:31

GoogleCodeExporter commented 9 years ago
using get_template_directory(), get_stylesheet_directory() and locate_template()

Original comment by helgathe...@gmail.com on 18 Jan 2012 at 2:31

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. See r797

locate_template() isn't going to work here unfortunately it defaults to the 
child theme dir if it exists which doesn't allow for inclusion of the parent 
themes dir if it exists.

This should resolve the abspath issues. 

Heads up to anyone interested. I'm looking at deprecating this bit altogether. 
I'll take that up here: issue 131

Original comment by eugene.m...@gmail.com on 22 Jan 2012 at 6:50