Browse Source

http_host error with wp-cli

windhamdavid 3 years ago
parent
commit
18e2af44b8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      wp-config-sample.php

+ 1 - 0
wp-config-sample.php

@@ -29,6 +29,7 @@ $table_prefix  = getenv('TABLE_PREFIX');
 
 define( 'WPLANG', '' );
 define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/app' );
+// *********** $_SERVER['HTTP_HOST'] will cause warnings with wp-cli ************** //
 define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp/app' );
 define( 'PLUGINDIR', dirname(__FILE__) . '/app/plugins' );