From c7a0f9d15a91b12b65ddd7a0bd816ef3b926f822 Mon Sep 17 00:00:00 2001 From: Arne Morken Date: Wed, 27 Nov 2024 20:47:48 +0100 Subject: [PATCH] Cleaned up Wordpress definition stuff --- data/mysql/anyDefs.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/data/mysql/anyDefs.php b/data/mysql/anyDefs.php index f167fdb..3e989f8 100644 --- a/data/mysql/anyDefs.php +++ b/data/mysql/anyDefs.php @@ -69,14 +69,12 @@ // // Wordpress stuff // - -//define("WP_PLUGIN",""); // Comment out if using the server API, but not as a Wordpress plugin -define("gWordpressURL", gServer . "Prosjekter/testserver/"); -define("gWProot", dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))); // Path to wp-load.php -define("gWPLoad", gWProot . "/wp-load.php"); // Wordpress functions - -// The names of user tables and columns depend on whether we run against a Wordpress database or not +define("WP_PLUGIN",""); // Comment out if using the server API, but not as a Wordpress plugin if (defined("WP_PLUGIN")) { + define("gWordpressURL", gServer . "Prosjekter/testserver/"); + define("gWProot", dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))); // Path to wp-load.php + define("gWPLoad", gWProot . "/wp-load.php"); // Wordpress functions + // The names of user tables and columns depend on whether we run against a Wordpress database or not define('ANY_DB_USER_TABLE', 'wp_users'); // Name of user table define('ANY_DB_USERMETA_TABLE','wp_usermeta'); // Name of user meta table define('ANY_DB_USER_ID', 'ID'); // Name of id key in user table