Skip to content

Commit

Permalink
Replace deprecated constant.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Jan 15, 2024
1 parent 5567c5f commit bbd73da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
const SHORTINIT = true;

// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash
$root = isset( $_SERVER['SCRIPT_FILENAME'] ) ? filter_var( $_SERVER['SCRIPT_FILENAME'], FILTER_SANITIZE_STRING ) : '';
$root = isset( $_SERVER['SCRIPT_FILENAME'] ) ? filter_var( $_SERVER['SCRIPT_FILENAME'], FILTER_SANITIZE_FULL_SPECIAL_CHARS ) : '';
$root = dirname( $root, 6 );

require $root . '/wp-load.php';
Expand Down

0 comments on commit bbd73da

Please sign in to comment.