Skip to content

Commit

Permalink
Address PHPStan warning
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Oct 10, 2024
1 parent a37e676 commit f363818
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/Admin/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,10 @@ public function get_editor_settings(): array {
/**
* Revision.
*
* @var int $revision
* @var string|int $revision
*/
$revision = isset( $_GET['revision'] ) ? absint( $_GET['revision'] ) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$revision = $_GET['revision'] ?? 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended,WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
$revision = absint( $revision );

$revision_message = ! empty( $revision ) ?
sprintf(
Expand Down

0 comments on commit f363818

Please sign in to comment.