Skip to content
Snippets Groups Projects
Select Git revision
  • 4e252dd9d3311da8ffa828539c5fbdf686a6be59
  • master default protected
  • bugfix/wordpress-review
  • bugfix/prevent-error-notice
  • remove-arrow
  • feature/update-message
  • feature/minimum-plugin-version-check-demo1
  • feature/plugin-name
  • 3.7.1
  • 3.7.0
  • 3.6.3
  • 3.6.2
  • 3.6.1
  • 3.6.0
  • 3.6.0-beta3
  • 3.6.0-beta2
  • 3.6.0-beta1
  • 3.5.2
  • 3.5.1
  • 3.5.0
  • 3.4.0
  • 3.3.0
  • 3.2.8
  • 3.2.7
  • 3.2.6
  • 3.2.5
  • 3.2.4
  • 3.2.3
28 results

Basic_Requirement_Checker_Factory.php

Blame
  • NonceValidator.php 424 B
    <?php
    
    namespace WPDesk\Forms\Validator;
    
    use WPDesk\Forms\Validator;
    
    class NonceValidator implements Validator {
    
    	/** @var string */
    	private $action;
    
    	/** @param string $action */
    	public function __construct( $action ) {
    		$this->action = $action;
    	}
    
    	public function is_valid( $value ): bool {
    		return (bool) wp_verify_nonce( $value, $this->action );
    	}
    
    	public function get_messages(): array {
    		return [];
    	}
    
    }