Add constants needed during analysis
[MAILPOET-3029]
This commit is contained in:
committed by
Veljko V
parent
90d7e1804e
commit
36b5a279b9
@@ -1,6 +1,25 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
// Constants
|
||||||
define('ABSPATH', getenv('WP_ROOT') . '/');
|
define('ABSPATH', getenv('WP_ROOT') . '/');
|
||||||
|
define('WPINC', 'wp-includes');
|
||||||
|
define('WP_DEBUG', false);
|
||||||
|
define('WP_LANG_DIR', 'wp-content/languages');
|
||||||
|
define('WP_PLUGIN_DIR', 'wp-content/plugins');
|
||||||
|
define('WP_MEMORY_LIMIT', 268435456);
|
||||||
|
define('WP_MAX_MEMORY_LIMIT', 268435456);
|
||||||
|
define('ARRAY_A', 'ARRAY_A');
|
||||||
|
define('OBJECT', 'OBJECT');
|
||||||
|
define('MINUTE_IN_SECONDS', 60);
|
||||||
|
define('HOUR_IN_SECONDS', 60 * MINUTE_IN_SECONDS);
|
||||||
|
define('DAY_IN_SECONDS', 24 * HOUR_IN_SECONDS);
|
||||||
|
define('WEEK_IN_SECONDS', 7 * DAY_IN_SECONDS);
|
||||||
|
define('MONTH_IN_SECONDS', 30 * DAY_IN_SECONDS);
|
||||||
|
define('YEAR_IN_SECONDS', 365 * DAY_IN_SECONDS);
|
||||||
|
define('MAILPOET_VERSION', '1.0.0');
|
||||||
|
|
||||||
|
// Define Database Tables constants
|
||||||
|
$dbConfig = new \MailPoet\Config\Database();
|
||||||
|
$dbConfig->defineTables();
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user