This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aktiv-web/wp-content/plugins/google-calendar-events/includes/admin/fields/nonce.php
T
2015-12-27 15:42:06 +01:00

43 lines
548 B
PHP

<?php
/**
* Nonce Field
*
* @package SimpleCalendar/Admin
*/
namespace SimpleCalendar\Admin\Fields;
use SimpleCalendar\Abstracts\Field;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Nonce field.
*
* @since 3.0.0
*/
class Nonce extends Field {
/**
* Construct.
*
* @since 3.0.0
*
* @param array $field
*/
public function __construct( $field ) {
parent::__construct( $field );
}
/**
* Outputs the field markup.
*
* @since 3.0.0
*/
public function html() {
wp_nonce_field( $this->name, $this->value );
}
}