Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically set wp_home and wp_siteurl #533

Merged
merged 1 commit into from
Mar 29, 2016

Conversation

swalkinshaw
Copy link
Member

Using the "dynamic" HTTP_HOST/SERVER_NAME is a good enough default. In
the majority of cases users should not have to worry about setting these
variables and overriding them.

This also allows for a more seamless transition to HTTPS since there's
one less place to configure or potentially forget. It also just reduces
the chances of misconfiguration in general and a mismatch of values
(site hosts and wp home/siteurl).

@swalkinshaw swalkinshaw force-pushed the wp-sites-set-wp-home-siteurl-defaults branch 2 times, most recently from 85cb26d to cb37349 Compare March 29, 2016 01:46
Using the "dynamic" HTTP_HOST/SERVER_NAME is a good enough default. In
the majority of cases users should not have to worry about setting these
variables and overriding them.

This also allows for a more seamless transition to HTTPS since there's
one less place to configure or potentially forget. It also just reduces
the chances of misconfiguration in general and a mismatch of values
(site hosts and wp home/siteurl).
@swalkinshaw swalkinshaw force-pushed the wp-sites-set-wp-home-siteurl-defaults branch from cb37349 to 85eebc0 Compare March 29, 2016 01:46
@swalkinshaw swalkinshaw merged commit 223887e into master Mar 29, 2016
@swalkinshaw swalkinshaw deleted the wp-sites-set-wp-home-siteurl-defaults branch March 29, 2016 01:52
swalkinshaw added a commit that referenced this pull request May 7, 2016
#533 caused a regression in the
cron job which runs `wp-cron.php`. Since `wp_home` and `wp_siteurl` were
changed to use bash and PHP variables, the cron command wouldn't work.

The solution is to avoid this and use WP-CLI's `cron` command for
running due cron events.
@jalada
Copy link

jalada commented Jun 21, 2016

With this change nothing works. All my Wordpress links etc. have literal ${WP_HOME} etc. in them. Confused... Am I doing something wrong?

Edit: Disregard. Bad version of bedrock

swalkinshaw added a commit that referenced this pull request Jul 28, 2016
#533 caused a regression in the
cron job which runs `wp-cron.php`. Since `wp_home` and `wp_siteurl` were
changed to use bash and PHP variables, the cron command wouldn't work.

The solution is to avoid this and use WP-CLI's `cron` command for
running due cron events.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants