Skip to content

Commit d8cb801

Browse files
committed
Work in progress.
1 parent 6d656e6 commit d8cb801

File tree

129 files changed

+382
-13386
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+382
-13386
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor/

changelog.md

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,33 @@
1-
# DebugPress
2-
3-
## Changelog
4-
5-
### Version: 3.9.2 (2024.08.23)
6-
7-
* **fix** one more issue with the access to OPCache status information
8-
9-
### Version: 3.9.1 (2024.08.19)
10-
11-
* **fix** problem with the Tracker when closure makes a call
12-
13-
### Version: 3.9 (2024.05.14)
14-
15-
* **edit** few more updates and improvements
16-
* **edit** replacement of some native with WordPress functions
17-
* **edit** various small updates and tweaks
18-
* **edit** Kint Pretty Print Library 5.1.1
19-
* **fix** various PHP notices related to PHP 8.1 and newer
20-
21-
### Version: 3.8 (2024.04.24)
22-
23-
* **edit** few minor tweaks and changes
24-
* **edit** updates to the plugin readme file
25-
* **edit** small changes related to the PHP 8.3 compatibility
26-
* **fix** various PHP notices related to PHP 8.1 and newer
27-
28-
### Version: 3.7 (2024.01.23)
29-
30-
* **edit** changes related to WordPress and PHP code standards
31-
* **edit** updated Query object for page query conditionals
32-
* **edit** updated Dev4Press Library Query detection versions
33-
* **fix** few compare statements written as assignment
34-
35-
### Version: 3.6 (2023.12.15)
36-
37-
* **edit** Increase Kint Library depth levels to 12
38-
* **edit** Kint Pretty Print Library 5.1.0
39-
* **fix** Small issue with getting the OPCache version when not allowed by the server
1+
# DebugPress
2+
3+
## Changelog
4+
5+
### Version: 4.0 (2024.11.02)
6+
7+
* **new** tested with WordPress 6.7
8+
* **new** tested and compatible with `PHP` 8.4 RC 3
9+
* **new** using composer to load `Kint` library
10+
* **new** various constants for KINT library control
11+
12+
### Version: 3.9.2 (2024.08.23)
13+
14+
* **fix** one more issue with the access to OPCache status information
15+
16+
### Version: 3.9.1 (2024.08.19)
17+
18+
* **fix** problem with the Tracker when closure makes a call
19+
20+
### Version: 3.9 (2024.05.14)
21+
22+
* **edit** few more updates and improvements
23+
* **edit** replacement of some native with WordPress functions
24+
* **edit** various small updates and tweaks
25+
* **edit** Kint Pretty Print Library 5.1.1
26+
* **fix** various PHP notices related to PHP 8.1 and newer
27+
28+
### Version: 3.8 (2024.04.24)
29+
30+
* **edit** few minor tweaks and changes
31+
* **edit** updates to the plugin readme file
32+
* **edit** small changes related to the PHP 8.3 compatibility
33+
* **fix** various PHP notices related to PHP 8.1 and newer

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"kint-php/kint": "5.1.1"
4+
}
5+
}

vendor/kint/composer/installed.json renamed to composer.lock

Lines changed: 16 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/panel/Queries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ private function _parse_types( $query, $qi ) {
363363
}
364364

365365
private function _prepare_library() {
366-
$list = array( '41', '42', '43', '44', '45', '46', '47', '48', '49', '50' );
366+
$list = array( '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52' );
367367

368368
foreach ( $list as $code ) {
369369
$class = 'Dev4Press\v' . $code . '\Core\Helpers\DB';

core/printer/kint/load.php

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,50 @@
11
<?php
22

3+
use Kint\Kint;
34
use Kint\Renderer\AbstractRenderer;
5+
use Kint\Renderer\RichRenderer;
46

57
if ( ! defined( 'ABSPATH' ) ) {
68
exit;
79
}
810

9-
require_once DEBUGPRESS_PLUGIN_PATH . 'vendor/kint/autoload.php';
11+
if ( ! defined( 'DEBUGPRESS_KINT_DISABLED_CLASS_METHOD' ) ) {
12+
define( 'DEBUGPRESS_KINT_DISABLED_CLASS_METHOD', false );
13+
}
14+
15+
if ( ! defined( 'DEBUGPRESS_KINT_DISABLED_CLASS_STATICS' ) ) {
16+
define( 'DEBUGPRESS_KINT_DISABLED_CLASS_STATICS', false );
17+
}
18+
19+
if ( ! defined( 'DEBUGPRESS_KINT_DISABLED_COLOR' ) ) {
20+
define( 'DEBUGPRESS_KINT_DISABLED_COLOR', false );
21+
}
22+
23+
if ( ! defined( 'DEBUGPRESS_KINT_DEPTH_LIMIT' ) ) {
24+
define( 'DEBUGPRESS_KINT_DEPTH_LIMIT', 12 );
25+
}
1026

11-
Kint::$depth_limit = 12;
27+
if ( ! defined( 'DEBUGPRESS_KINT_THEME' ) ) {
28+
define( 'DEBUGPRESS_KINT_THEME', 'aante-light.css' );
29+
}
30+
31+
Kint::$depth_limit = DEBUGPRESS_KINT_DEPTH_LIMIT;
32+
33+
if ( DEBUGPRESS_KINT_DISABLED_CLASS_METHOD ) {
34+
unset( Kint::$plugins[4] );
35+
}
36+
37+
if ( DEBUGPRESS_KINT_DISABLED_CLASS_STATICS ) {
38+
unset( Kint::$plugins[5] );
39+
}
40+
41+
if ( DEBUGPRESS_KINT_DISABLED_COLOR ) {
42+
unset( Kint::$plugins[7] );
43+
}
1244

13-
Kint\Renderer\RichRenderer::$folder = false;
14-
Kint\Renderer\RichRenderer::$theme = 'aante-light.css';
15-
Kint\Renderer\RichRenderer::$sort = AbstractRenderer::SORT_FULL;
45+
RichRenderer::$folder = false;
46+
RichRenderer::$theme = DEBUGPRESS_KINT_THEME;
47+
RichRenderer::$sort = AbstractRenderer::SORT_FULL;
1648

1749
do_action( 'debugpress-printer-loaded-kint' );
1850

core/printer/prettyprint/load.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
use Dev4Press\Plugin\DebugPress\Printer\PrettyPrint\PrettyPrint;
88

9-
require_once DEBUGPRESS_PLUGIN_PATH . 'vendor/prettyprint/PrettyPrint.php';
10-
119
/**
1210
* Main `print_r` pretty print replacement that can pretty print and format (almost) anything you want including
1311
* objects with support for reflection analysis.

debugpress.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* Author: Milan Petrovic
77
* Author URI: https://www.dev4press.com/
88
* Text Domain: debugpress
9-
* Version: 3.9.2
9+
* Version: 4.0
1010
* Requires at least: 5.5
11-
* Tested up to: 6.6
11+
* Tested up to: 6.7
1212
* Requires PHP: 7.4
1313
* Requires CP: 2.0
1414
* License: GPLv3 or later
@@ -33,7 +33,7 @@
3333
* along with this program. If not, see <http://www.gnu.org/licenses/>
3434
*/
3535

36-
const DEBUGPRESS_VERSION = '3.9.2';
36+
const DEBUGPRESS_VERSION = '4.0';
3737
const DEBUGPRESS_FILE = __FILE__;
3838
const DEBUGPRESS_PLUGIN_PATH = __DIR__ . '/';
3939

@@ -55,6 +55,7 @@
5555
return;
5656
}
5757

58+
require_once DEBUGPRESS_PLUGIN_PATH . 'vendor/autoload.php';
5859
require_once DEBUGPRESS_PLUGIN_PATH . 'core/autoload.php';
5960
require_once DEBUGPRESS_PLUGIN_PATH . 'core/bridge.php';
6061
require_once DEBUGPRESS_PLUGIN_PATH . 'core/functions.php';

0 commit comments

Comments
 (0)