Skip to content

Commit

Permalink
fix: get site_url to work with bedrock and multisite
Browse files Browse the repository at this point in the history
  • Loading branch information
carlalexander committed Aug 10, 2020
1 parent d5a97aa commit 3e5eb23
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 @@ -79,7 +79,7 @@ public function modify(Container $container)

return new \WP_Site_Icon();
});
$container['site_url'] = defined('WP_HOME') ? WP_HOME : '';
$container['site_url'] = set_url_scheme(get_home_url(), 'https');
$container['uploads_basedir'] = $container->service(function () {
return wp_upload_dir()['basedir'] ?? '';
});
Expand Down

0 comments on commit 3e5eb23

Please sign in to comment.