BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
public_html
/
Main backup
/
wp-content
/
plugins
/
really-simple-ssl
/
core
/
app
/
Traits
📤 Upload
📝 New File
📁 New Folder
Close
Editing: HasNonces.php
<?php declare(strict_types=1); namespace ReallySimplePlugins\RSS\Core\Traits; trait HasNonces { /** * Method for verifying the nonce * @param mixed $nonce Preferably string, not type-casted to prevent errors */ protected function verifyNonce($nonce, string $action = 'rss_core_nonce'): bool { if (is_string($nonce) === false) { return false; } return (bool) wp_verify_nonce(sanitize_text_field(wp_unslash($nonce)), $action); } }
Save
Cancel