PluginProbe
Force Refresh / 2.1.6
Force Refresh v2.1.6
3.2.1 3.2.0 3.1.2 3.1.1 3.1.0 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.11.0 2.11.1 2.12.0 All 54 releases
force-refresh / includes / api / client / client.php

client.php in Force Refresh 2.1.6, at includes/api/client/client.php

21 lines 499 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Our API calls responsible for handling requests from website visitors.
4 *
5 * @package ForceRefresh
6 */
7
8 /**
9 * Function to check the nonce provided in the call.
10 *
11 * @return boolean True if the provided nonce is valid.
12 */
13 function is_client_nonce_valid() {
14 $nonce = isset( $_REQUEST['nonce'] )
15 ? sanitize_text_field( wp_unslash( $_REQUEST['nonce'] ) )
16 : null;
17 return wp_verify_nonce( $nonce, WP_ACTION_GET_VERSION );
18 }
19
20 require_once __DIR__ . '/inc.get-version.php';
21