Skip to content

Commit

Permalink
Few minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dev4press committed Sep 27, 2020
1 parent 19949dc commit ce6e551
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions core/display/ErrorFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public static function doing_it_wrong( $item ) {
if ( $item['message'] ) {
$render .= '<div class="debugpress-error-message">' . esc_html( $item['message'] ) . '</div>';
}

$render .= '</div>';

return $render;
Expand Down Expand Up @@ -154,6 +155,7 @@ public static function deprecated_function( $item ) {
if ( isset( $item['message'] ) && ! empty( $item['message'] ) ) {
echo '<em>' . $item['message'] . '</em>';
}

echo '</div>';
}

Expand All @@ -168,23 +170,27 @@ public static function deprecated_constructor( $item ) {
if ( isset( $item['message'] ) && ! empty( $item['message'] ) ) {
echo '<em>' . $item['message'] . '</em>';
}

echo '</div>';
}

public static function deprecated_argument( $item ) {
echo '<div class="debugpress-wrapper-warning debugpress-warning-deprecated debugpress-deprecated-argument">';
echo '<h4>' . __( "Deprecated Argument", "debugpress" ) . ':</h4>';

if ( $item['in_file'] ) {
if ( $item['on_line'] ) {
echo "<strong>" . __( "On line", "debugpress" ) . ":</strong> " . $item["on_line"] . ", ";
}
echo "<strong>" . __( "In file", "debugpress" ) . ":</strong> " . $item["in_file"] . "<br/>";
}

echo sprintf( __( "Argument in <strong>%s</strong> is deprecated since version %s.", "debugpress" ), $item["deprecated"], $item["version"] );

if ( isset( $item['message'] ) && ! empty( $item['message'] ) ) {
echo '<em>' . $item['message'] . '</em>';
}

echo '</div>';
}
}
2 changes: 1 addition & 1 deletion core/display/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,4 +237,4 @@ private function vars_styling_override() {
return '';
}
}
}
}
2 changes: 1 addition & 1 deletion core/display/SQLFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

class SQLFormat {
// Constants for token types
// Constants for token types
const TOKEN_TYPE_WHITESPACE = 0;
const TOKEN_TYPE_WORD = 1;
const TOKEN_TYPE_QUOTE = 2;
Expand Down
2 changes: 1 addition & 1 deletion core/main/AJAX.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ public function respond( $response, $code = 200, $json = false ) {

die( $response );
}
}
}
2 changes: 1 addition & 1 deletion core/main/IP.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,4 +354,4 @@ public static function cleanup_ip( $ip ) {
return false;
}
}
}
}
2 changes: 1 addition & 1 deletion core/main/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ public function list_plain_pairs( $list, $merge = '<br/>' ) {

return join( $merge, $render );
}
}
}
2 changes: 1 addition & 1 deletion core/main/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,4 @@ public function build_stats( $key = 'wp_footer' ) {

return $gd;
}
}
}
2 changes: 1 addition & 1 deletion core/main/Scope.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ public function scope() {
'scope' => $this->get_scope()
);
}
}
}
6 changes: 3 additions & 3 deletions debugpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Author: Milan Petrovic
Author URI: https://www.dev4press.com/
Text Domain: debugpress
Version: 1.3
Version: 1.2.1
Requires at least: 4.9
Tested up to: 5.5
Requires PHP: 5.6
Expand All @@ -31,7 +31,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>
*/

define( 'DEBUGPRESS_VERSION', '1.2' );
define( 'DEBUGPRESS_VERSION', '1.2.1' );
define( 'DEBUGPRESS_PLUGIN_PATH', __DIR__ . '/' );
define( 'DEBUGPRESS_PLUGIN_URL', plugins_url( '/', __FILE__ ) );

Expand All @@ -54,4 +54,4 @@

if ( defined( 'WP_ADMIN' ) && WP_ADMIN ) {
debugpress_admin();
}
}
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: GDragoN
Donate link: https://debug.press/
Tags: dev4press, debugger, debug, debugging, development, profiler, queries, query monitor, ajax monitor
Stable tag: 1.3
Stable tag: 1.2.1
Requires at least: 4.9
Tested up to: 5.5
Requires PHP: 5.6
Expand Down Expand Up @@ -87,7 +87,7 @@ Open the WordPress 'Settings' menu, there you will find 'DebugPress' panel.
If you have enabled debugger (for admin side and/or frontend), Debugger is activate via Bug button placed in the WordPress Toolbar or as a float button (depending on the settings).

== Changelog ==
= 1.3 (2020.09.28) =
= 1.2.1 (2020.09.27) =
* Edit: various improvements to errors and warnings tracking handlers
* Fix: missing argument for the deprecated tracking handler

Expand Down

0 comments on commit ce6e551

Please sign in to comment.