Skip to content

Commit

Permalink
fix: didn't configure the content_directory variable properly
Browse files Browse the repository at this point in the history
  • Loading branch information
carlalexander committed Dec 14, 2021
1 parent 594a0ee commit d01de24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration/WordPressConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function modify(Container $container)
$container['blog_charset'] = $container->service(function () {
return get_bloginfo('charset');
});
$container['content_directory'] = defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR : '';
$container['content_directory'] = defined('WP_CONTENT_DIR') ? WP_CONTENT_DIR : ABSPATH.'wp-content';
$container['content_url'] = defined('WP_CONTENT_URL') ? WP_CONTENT_URL : '';
$container['current_user'] = $container->service(function () {
return wp_get_current_user();
Expand Down

0 comments on commit d01de24

Please sign in to comment.