Skip to content

Commit

Permalink
Work in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Petrovic committed Nov 1, 2024
1 parent 6d656e6 commit d8cb801
Show file tree
Hide file tree
Showing 129 changed files with 382 additions and 13,386 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
72 changes: 33 additions & 39 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,33 @@
# DebugPress

## Changelog

### Version: 3.9.2 (2024.08.23)

* **fix** one more issue with the access to OPCache status information

### Version: 3.9.1 (2024.08.19)

* **fix** problem with the Tracker when closure makes a call

### Version: 3.9 (2024.05.14)

* **edit** few more updates and improvements
* **edit** replacement of some native with WordPress functions
* **edit** various small updates and tweaks
* **edit** Kint Pretty Print Library 5.1.1
* **fix** various PHP notices related to PHP 8.1 and newer

### Version: 3.8 (2024.04.24)

* **edit** few minor tweaks and changes
* **edit** updates to the plugin readme file
* **edit** small changes related to the PHP 8.3 compatibility
* **fix** various PHP notices related to PHP 8.1 and newer

### Version: 3.7 (2024.01.23)

* **edit** changes related to WordPress and PHP code standards
* **edit** updated Query object for page query conditionals
* **edit** updated Dev4Press Library Query detection versions
* **fix** few compare statements written as assignment

### Version: 3.6 (2023.12.15)

* **edit** Increase Kint Library depth levels to 12
* **edit** Kint Pretty Print Library 5.1.0
* **fix** Small issue with getting the OPCache version when not allowed by the server
# DebugPress

## Changelog

### Version: 4.0 (2024.11.02)

* **new** tested with WordPress 6.7
* **new** tested and compatible with `PHP` 8.4 RC 3
* **new** using composer to load `Kint` library
* **new** various constants for KINT library control

### Version: 3.9.2 (2024.08.23)

* **fix** one more issue with the access to OPCache status information

### Version: 3.9.1 (2024.08.19)

* **fix** problem with the Tracker when closure makes a call

### Version: 3.9 (2024.05.14)

* **edit** few more updates and improvements
* **edit** replacement of some native with WordPress functions
* **edit** various small updates and tweaks
* **edit** Kint Pretty Print Library 5.1.1
* **fix** various PHP notices related to PHP 8.1 and newer

### Version: 3.8 (2024.04.24)

* **edit** few minor tweaks and changes
* **edit** updates to the plugin readme file
* **edit** small changes related to the PHP 8.3 compatibility
* **fix** various PHP notices related to PHP 8.1 and newer
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"kint-php/kint": "5.1.1"
}
}
24 changes: 16 additions & 8 deletions vendor/kint/composer/installed.json → composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/panel/Queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ private function _parse_types( $query, $qi ) {
}

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

foreach ( $list as $code ) {
$class = 'Dev4Press\v' . $code . '\Core\Helpers\DB';
Expand Down
42 changes: 37 additions & 5 deletions core/printer/kint/load.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,50 @@
<?php

use Kint\Kint;
use Kint\Renderer\AbstractRenderer;
use Kint\Renderer\RichRenderer;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

require_once DEBUGPRESS_PLUGIN_PATH . 'vendor/kint/autoload.php';
if ( ! defined( 'DEBUGPRESS_KINT_DISABLED_CLASS_METHOD' ) ) {
define( 'DEBUGPRESS_KINT_DISABLED_CLASS_METHOD', false );
}

if ( ! defined( 'DEBUGPRESS_KINT_DISABLED_CLASS_STATICS' ) ) {
define( 'DEBUGPRESS_KINT_DISABLED_CLASS_STATICS', false );
}

if ( ! defined( 'DEBUGPRESS_KINT_DISABLED_COLOR' ) ) {
define( 'DEBUGPRESS_KINT_DISABLED_COLOR', false );
}

if ( ! defined( 'DEBUGPRESS_KINT_DEPTH_LIMIT' ) ) {
define( 'DEBUGPRESS_KINT_DEPTH_LIMIT', 12 );
}

Kint::$depth_limit = 12;
if ( ! defined( 'DEBUGPRESS_KINT_THEME' ) ) {
define( 'DEBUGPRESS_KINT_THEME', 'aante-light.css' );
}

Kint::$depth_limit = DEBUGPRESS_KINT_DEPTH_LIMIT;

if ( DEBUGPRESS_KINT_DISABLED_CLASS_METHOD ) {
unset( Kint::$plugins[4] );
}

if ( DEBUGPRESS_KINT_DISABLED_CLASS_STATICS ) {
unset( Kint::$plugins[5] );
}

if ( DEBUGPRESS_KINT_DISABLED_COLOR ) {
unset( Kint::$plugins[7] );
}

Kint\Renderer\RichRenderer::$folder = false;
Kint\Renderer\RichRenderer::$theme = 'aante-light.css';
Kint\Renderer\RichRenderer::$sort = AbstractRenderer::SORT_FULL;
RichRenderer::$folder = false;
RichRenderer::$theme = DEBUGPRESS_KINT_THEME;
RichRenderer::$sort = AbstractRenderer::SORT_FULL;

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

Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions core/printer/prettyprint/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

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

require_once DEBUGPRESS_PLUGIN_PATH . 'vendor/prettyprint/PrettyPrint.php';

/**
* Main `print_r` pretty print replacement that can pretty print and format (almost) anything you want including
* objects with support for reflection analysis.
Expand Down
7 changes: 4 additions & 3 deletions debugpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* Author: Milan Petrovic
* Author URI: https://www.dev4press.com/
* Text Domain: debugpress
* Version: 3.9.2
* Version: 4.0
* Requires at least: 5.5
* Tested up to: 6.6
* Tested up to: 6.7
* Requires PHP: 7.4
* Requires CP: 2.0
* License: GPLv3 or later
Expand All @@ -33,7 +33,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/

const DEBUGPRESS_VERSION = '3.9.2';
const DEBUGPRESS_VERSION = '4.0';
const DEBUGPRESS_FILE = __FILE__;
const DEBUGPRESS_PLUGIN_PATH = __DIR__ . '/';

Expand All @@ -55,6 +55,7 @@
return;
}

require_once DEBUGPRESS_PLUGIN_PATH . 'vendor/autoload.php';
require_once DEBUGPRESS_PLUGIN_PATH . 'core/autoload.php';
require_once DEBUGPRESS_PLUGIN_PATH . 'core/bridge.php';
require_once DEBUGPRESS_PLUGIN_PATH . 'core/functions.php';
Expand Down
Loading

0 comments on commit d8cb801

Please sign in to comment.