Comment_Delete::__construct()
Description #
The class constructor.
Set requests and nonce key.
Source #
File: ajax/comment-delete.php
protected function __construct() {
$comment_id = ap_sanitize_unslash( 'comment_id', 'r' );
$this->nonce_key = 'delete_comment_' . $comment_id;
$this->req( 'comment_id', $comment_id );
// Call parent.
parent::__construct();
}
Expand full source code Collapse full source code View on GitHub: ajax/comment-delete.php:39
Add your comment