cherry-framework icon indicating copy to clipboard operation
cherry-framework copied to clipboard

pass_core_to_widgets no load core if $current_core has double //

Open xandros15 opened this issue 8 years ago • 0 comments

Context method: https://github.com/CherryFramework/cherry-framework/blob/master/modules/cherry-widget-factory/cherry-widget-factory.php#L79

My web service provider makes my $current_core looks like that: //wp-content/themes/mytheme/cherry-framework/. The $path is /wp-content/themes/mytheme/cherry-framework/modules/cherry-widget-factory/inc. There is no way, to get other result than false from strpos. Ofc, I can add filter on template_directory to fix my get_template_directory();, but I guess is just bad implementation in your code too.

Best Regards

xandros15 avatar Apr 13 '17 17:04 xandros15