Skip to content

Commit

Permalink
Fix deprecated sanitize_url() and cannot redeclare is_ajax issues
Browse files Browse the repository at this point in the history
  • Loading branch information
qriouslad committed Apr 30, 2022
1 parent 91a14fa commit adb2f44
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion admin/class-database-admin-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function da_adminer() {
*/
public function da_maybe_include_adminer() {

$request_uri = sanitize_url( $_SERVER['REQUEST_URI'] );
$request_uri = esc_url_raw( $_SERVER['REQUEST_URI'] );

if ( strpos( $request_uri, 'dbadmnr' ) !== false ) {

Expand Down
Loading

0 comments on commit adb2f44

Please sign in to comment.