Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP 8 Supported #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions debug-bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class Debug_Bar_Rewrite_Rules_Panel extends Debug_Bar_Panel {
*/
private $parent;

public $_visible;

/**
* Give the panel a title and set the enqueues.
*
Expand Down
5 changes: 4 additions & 1 deletion rewrite-rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ class UA_Made_Rewrite_Rules {
*/
public $title;

private $initialized;

private $pagetitle;

/**
* Get Instance.
Expand Down Expand Up @@ -468,7 +471,7 @@ public function stats() {
public function ajax() {

$return = array();
$nonce = filter_input( INPUT_POST, 'nonce', FILTER_SANITIZE_STRING );
$nonce = filter_input( INPUT_POST, 'nonce', FILTER_SANITIZE_SPECIAL_CHARS );

$has_valid_nonce = wp_verify_nonce( $nonce, 'debug-bar-rewrite-rules-nonce' );

Expand Down
5 changes: 3 additions & 2 deletions validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
'rules' => array(
'filter' => FILTER_CALLBACK,
'options' => function ( $var ) {
return filter_var( $var, FILTER_SANITIZE_STRING );
return $var;
// return filter_var( $var, FILTER_SANITIZE_FULL_SPECIAL_CHARS );
},
),
'search' => FILTER_SANITIZE_STRING,
'search' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
)
);
} else {
Expand Down