Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (16 sloc) 398 Bytes
<?php
if (!class_exists('Robot')) :
class Robot {
var $plugin;
function __construct($plugin)
{
$this->plugin = $plugin;
}
function check_referer($action = -1, $query_arg = '_wpnonce')
{
$result = isset($_REQUEST[$query_arg]) ? wp_verify_nonce($_REQUEST[$query_arg], $action) : false;
return $result && -1 != $action && false === wp_get_referer();
}
}
endif;
?>
Something went wrong with that request. Please try again.