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

define WP_CONTENT_URL changes #61

Open
Gyroscopic opened this issue May 21, 2014 · 0 comments
Open

define WP_CONTENT_URL changes #61

Gyroscopic opened this issue May 21, 2014 · 0 comments

Comments

@Gyroscopic
Copy link

Hi

Thanks for this repo, very much looking forward to using it.

While setting it up to work on a local computer, I was pleased to see the local-config.php facility and jumped in to use it. However I believe it might be better if you also allowed the following to define local paths (in local-config.php)...

define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/content' );

My local paths are usually http://localhost/_mysite_ so the above line would have to include '/mysite/content' to work.

Then in the standard wp-config.php file use...

if (!defined('WP_CONTENT_URL')) define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/content' );

to test if we are on the local site or not.

In this way paths for local setups are kept in one place and we wont have to edit the main config file when its uploaded to the live site.

Any chance you can update the repo with the wp-config.php change?

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

No branches or pull requests

1 participant