-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
44 lines (33 loc) · 1.04 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
declare(strict_types = 1);
require_once 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
use NatOkpe\Wp\Theme\Tranquil\Theme;
use NatOkpe\Wp\Theme\Tranquil\Config;
// define( 'WP_DEBUG', true );
// define( 'WP_DEBUG_LOG', true );
// define( 'WP_DEBUG_DISPLAY', true );
// define( 'SCRIPT_DEBUG', false );
// define( 'WPCF7_AUTOP', false );
// define( 'WP_ALLOW_REPAIR', true );
if (WP_DEBUG === true) {
if (! defined('WP_DEBUG_LOG')) {
define( 'WP_DEBUG_LOG', true );
}
if (! defined('WP_DEBUG_DISPLAY')) {
define( 'WP_DEBUG_DISPLAY', true );
}
if (! defined('SCRIPT_DEBUG')) {
define( 'SCRIPT_DEBUG', false );
}
ini_set("xdebug.var_display_max_depth", "-1");
ini_set("xdebug.var_display_max_children", "-1");
ini_set("xdebug.var_display_max_data", "-1");
ini_set("display_errors", "1");
}
ini_set("upload_max_size", "1024M");
ini_set("post_max_size", "1024M");
ini_set("max_execution_time", "300");
$config = new Config([
]);
$theme = new Theme($config->close());
$theme->start();