Skip to content

Commit

Permalink
Cleaned up Wordpress definition stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemorken committed Nov 27, 2024
1 parent 09b7b9b commit c7a0f9d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions data/mysql/anyDefs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7a0f9d

Please sign in to comment.