diff --git a/debug-bar.php b/debug-bar.php index 1034470..f009412 100644 --- a/debug-bar.php +++ b/debug-bar.php @@ -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. * diff --git a/rewrite-rules.php b/rewrite-rules.php index 581721a..fe2f94b 100644 --- a/rewrite-rules.php +++ b/rewrite-rules.php @@ -104,6 +104,9 @@ class UA_Made_Rewrite_Rules { */ public $title; + private $initialized; + + private $pagetitle; /** * Get Instance. @@ -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' ); diff --git a/validator.php b/validator.php index f6d7865..c2c89a3 100644 --- a/validator.php +++ b/validator.php @@ -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 {