summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-03-08 15:46:26 +0100
committerDaniel Weipert <code@drogueronin.de>2021-03-08 15:46:26 +0100
commit7055700be25bb9d03672350c6cd3880274e1ea8b (patch)
tree9973730a056fd347f4c846459eaf5b2b64fdd2e8
parentbe8749fdb920a50fa3fb585640c7e7f3c0b30361 (diff)
Fixes WP_CONTENT_URL define
-rw-r--r--public/index.php3
-rw-r--r--public/wp-config.php10
-rw-r--r--wp-config.example.php6
3 files changed, 11 insertions, 8 deletions
diff --git a/public/index.php b/public/index.php
index c2dcbbf..fb063c5 100644
--- a/public/index.php
+++ b/public/index.php
@@ -1,4 +1,3 @@
<?php
-define('WP_USE_THEMES', true);
-require(__DIR__ . '/wp/wp-blog-header.php');
+require __DIR__ . '/wp/index.php';
diff --git a/public/wp-config.php b/public/wp-config.php
index 8503bb3..b5618b1 100644
--- a/public/wp-config.php
+++ b/public/wp-config.php
@@ -1,11 +1,11 @@
<?php
+require_once dirname(__DIR__) . '/vendor/autoload.php';
+require_once dirname(__DIR__) . '/wp-config.php';
+
+define('WP_CONTENT_DIR', __DIR__ . '/' . CONTENT_DIR);
+
if (! defined('ABSPATH')) {
define('ABSPATH', __DIR__ . '/wp/');
}
-
-define('WP_CONTENT_DIR', __DIR__ . '/wp-content');
-
-require_once dirname(__DIR__) . '/vendor/autoload.php';
-require_once dirname(__DIR__) . '/wp-config.php';
require_once ABSPATH . 'wp-settings.php';
diff --git a/wp-config.example.php b/wp-config.example.php
index 6f6f9b4..efb0ca0 100644
--- a/wp-config.example.php
+++ b/wp-config.example.php
@@ -2,7 +2,8 @@
define('WP_ENVIRONMENT_TYPE', 'production');
-#define('WP_HOME', 'http://localhost');
+define('WP_HOME', 'http://localhost');
+define('WP_SITEURL', WP_HOME . '/wp');
define('DB_NAME', 'database_name_here');
define('DB_USER', 'username_here');
@@ -21,6 +22,9 @@ define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
+define('CONTENT_DIR', 'wp-content');
+define('WP_CONTENT_URL', WP_HOME . '/' . CONTENT_DIR);
+
define('DISALLOW_FILE_EDIT', true);
define('WP_POST_REVISIONS', -1);
define('EMPTY_TRASH_DAYS', 3650);