Skip to content

Commit

Permalink
Update wp-config.php
Browse files Browse the repository at this point in the history
Added option for `FS_METHOD` as well as a manual `config_append` option for appending custom code.
  • Loading branch information
tamagokun committed Oct 30, 2014
1 parent 506025b commit bcfc4f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/generators/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

$cache = isset($app->env->wordpress["cache"])? $define('WP_CACHE', "cache") : "";
$multisite = isset($app->env->wordpress["allow_multisite"])? $define('WP_ALLOW_MULTISITE', "allow_multisite") : "";
$fs_method = isset($app->env->wordpress["fs_method"])? $define('FS_METHOD', "fs_method") : "";
$debug = $define('WP_DEBUG', "debug");
$edits = $define('DISALLOW_FILE_EDIT', "disallow_file_edit");
$mods = $define('DISALLOW_FILE_MODS', "disallow_file_mods");
$ssl_login = $define('FORCE_SSL_LOGIN', "force_ssl_login");
$ssl_admin = $define('FORCE_SSL_ADMIN', "force_ssl_admin");
$append = isset($app->env->wordpress["config_append"])? $app->env->wordpress["config_append"] : "";

$siteurl = isset($app->env->wordpress["url"])? "'{$app->env->wordpress["url"]}'":"'http://'.\$_SERVER['SERVER_NAME']";
if($app->env->wordpress["base_uri"]) $siteurl .= ".'{$app->env->wordpress["base_uri"]}'";
Expand Down Expand Up @@ -45,6 +47,8 @@
{$mods}
{$ssl_login}
{$ssl_admin}
{$fs_method}
{$append}
require_once(ABSPATH . 'wp-settings.php');
?>
EOT;
Expand Down

0 comments on commit bcfc4f1

Please sign in to comment.