Skip to content

Commit

Permalink
Merge pull request #68 from mindkomm/1.x-php81
Browse files Browse the repository at this point in the history
fix: Fix a PHP 8.1 deprecation
  • Loading branch information
gchtr authored Mar 1, 2024
2 parents 54b4d5e + cbce1f2 commit 38a54a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Timmy.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public function filter_image_downsize( $return, $attachment_id, $size ) {

// When media files are requested through an AJAX call, an action will be present in $_POST.
$action = is_admin() && isset( $_POST['action'] )
? filter_var( $_POST['action'], FILTER_SANITIZE_STRING )
? htmlspecialchars( $_POST['action'] )
: false;

$attachment = get_post( $attachment_id );
Expand Down

0 comments on commit 38a54a1

Please sign in to comment.