PluginProbe
My WP Customize Admin/Frontend / 1.14
My WP Customize Admin/Frontend v1.14
1.27.4 1.27.3 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.10 1.10.1 1.10.2 1.11 1.12 1.12.1 1.12.2 1.13 1.13.1 1.13.2 1.14 1.15.0 1.16 1.17.0 All 76 releases
my-wp / developer / modules / mywp.developer.module.core.environment.php

mywp.developer.module.core.environment.php in My WP Customize Admin/Frontend 1.14, at developer/modules/mywp.developer.module.core.environment.php

89 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 if( ! class_exists( 'MywpDeveloperAbstractModule' ) ) {
8 return false;
9 }
10
11 if ( ! class_exists( 'MywpDeveloperModuleCoreEnvironment' ) ) :
12
13 final class MywpDeveloperModuleCoreEnvironment extends MywpDeveloperAbstractModule {
14
15 static protected $id = 'core_environment';
16
17 static protected $priority = 70;
18
19 public static function mywp_debug_renders( $debug_renders ) {
20
21 $debug_renders[ self::$id ] = array(
22 'debug_type' => 'core',
23 'title' => __( 'Environment' , 'my-wp' ),
24 );
25
26 return $debug_renders;
27
28 }
29
30 protected static function get_debug_lists() {
31
32 global $wp_version;
33
34 $debug_lists = array();
35
36 $defines = array(
37 'WP_DEBUG',
38 'WP_DEBUG_LOG',
39 'SCRIPT_DEBUG',
40 'SAVEQUERIES',
41 'WP_HOME',
42 'WP_SITEURL',
43 'WP_POST_REVISIONS',
44 'WP_MEMORY_LIMIT',
45 'WP_MAX_MEMORY_LIMIT',
46 );
47
48 foreach( $defines as $define ) {
49
50 $debug_lists[ $define ] = false;
51
52 if( defined( $define ) ) {
53
54 $debug_lists[ $define ] = constant( $define );
55
56 }
57
58 }
59
60 $debug_lists['$wp_version'] = $wp_version;
61 $debug_lists['is_multisite()'] = is_multisite();
62 $debug_lists['PHP_VERSION'] = PHP_VERSION;
63
64 if( function_exists( 'ini_get' ) ) {
65
66 $debug_lists['max_input_vars'] = ini_get( 'max_input_vars' );
67 $debug_lists['max_input_time'] = ini_get( 'max_input_time' );
68 $debug_lists['max_execution_time'] = ini_get( 'max_execution_time' );
69
70 } else {
71
72 $debug_lists['max_input_vars'] = '';
73 $debug_lists['max_input_time'] = '';
74 $debug_lists['max_execution_time'] = '';
75
76 }
77
78 $debug_lists['$_SERVER'] = $_SERVER;
79
80 return $debug_lists;
81
82 }
83
84 }
85
86 MywpDeveloperModuleCoreEnvironment::init();
87
88 endif;
89