PluginProbe
PhastPress / 3.8
PhastPress v3.8
3.12 3.11 1.75 1.76 1.77 1.78 1.79 1.80 1.81 1.82 1.83 1.84 1.85 1.86 1.87 1.88 1.89 1.90 1.91 1.92 1.93 1.94 1.95 1.96 1.97 All 119 releases
phastpress / classes / NonceCheckerImplementation.php

NonceCheckerImplementation.php in PhastPress 3.8, at classes/NonceCheckerImplementation.php

22 lines 479 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Kibo\PhastPlugins\PhastPress;
4
5
6 use Kibo\PhastPlugins\SDK\AdminPanel\Nonce;
7 use Kibo\PhastPlugins\SDK\Security\NonceChecker;
8
9 class NonceCheckerImplementation implements NonceChecker {
10
11 const NONCE_NAME = 'phastpress-nonce';
12
13 public function checkNonce(array $data) {
14 return check_admin_referer(self::NONCE_NAME);
15 }
16
17 public static function makeNonce() {
18 return Nonce::make('_wpnonce', wp_create_nonce(self::NONCE_NAME));
19 }
20
21 }
22