Skip to content

Commit

Permalink
Move base configuration to wp-config (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
John Spellman authored Jul 15, 2022
1 parent e1a4474 commit f9b1cd1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
23 changes: 0 additions & 23 deletions web/wp-config-pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,26 +168,3 @@
endif;

endif;

/*
* Define wp-content directory outside of WordPress core directory
*/
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/app' );
define( 'WP_CONTENT_URL', WP_HOME . '/app' );

/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = getenv( 'DB_PREFIX' ) !== false ? getenv( 'DB_PREFIX' ) : 'wp_';

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname(__FILE__) . 'wp-config.php/');
}
/** Sets up WordPress vars and included files. */
require_once( ABSPATH . 'wp-settings.php' );
27 changes: 25 additions & 2 deletions web/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,28 @@
} else {
require_once dirname(__DIR__) . '/vendor/autoload.php';
require_once dirname(__DIR__) . '/config/application.php';
require_once ABSPATH . 'wp-settings.php';
}
}

/*
* Define wp-content directory outside of WordPress core directory
*/
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/app' );
define( 'WP_CONTENT_URL', WP_HOME . '/app' );

/**
* WordPress Database Table prefix.
*
* You can have multiple installations in one database if you give each
* a unique prefix. Only numbers, letters, and underscores please!
*/
$table_prefix = getenv( 'DB_PREFIX' ) !== false ? getenv( 'DB_PREFIX' ) : 'wp_';

/* That's all, stop editing! Happy Pressing. */

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( __FILE__ ) . '/' );
}

/** Sets up WordPress vars and included files. */
require_once( ABSPATH . 'wp-settings.php' );

0 comments on commit f9b1cd1

Please sign in to comment.