Skip to content

Commit b79c3e2

Browse files
committed
Fix steps 1 and 2 using the wp_nonce field
1 parent 4ce1517 commit b79c3e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

classes/shortcodes/class-shortcode-registration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function check_step_1() {
7676

7777
// Check _NONCE
7878
$nonce = isset( $_POST['_wpnonce'] ) ? $_POST['_wpnonce'] : '';
79-
if ( !wp_verify_nonce( $nonce, 'mptregistration' ) ) {
79+
if ( !mpt_verify_nonce( $nonce, 'mptregistration' ) ) {
8080
parent::set_message( 'check-nonce', 'Security check failed', 'error' );
8181
}
8282

@@ -240,7 +240,7 @@ public static function check_step_2_form() {
240240
if ( isset( $_POST['mptregistration_s2'] ) ) {
241241
// Check _NONCE
242242
$nonce = isset( $_POST['_wpnonce'] ) ? $_POST['_wpnonce'] : '';
243-
if ( !wp_verify_nonce( $nonce, 'mptregistration_s2' ) ) {
243+
if ( !mpt_verify_nonce( $nonce, 'mptregistration_s2' ) ) {
244244
parent::set_message( 'check-nonce', 'Security check failed', 'error' );
245245
}
246246

members-post-type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
Plugin Name: Members post type
4-
Version: 0.7.0
4+
Version: 0.7.1
55
Plugin URI: https://github.com/herewithme/members-post-type
66
Description: Manage members on WordPress as post type. Implement: post type, authentification, role, clone from WP.
77
Author: Amaury Balmer
@@ -57,7 +57,7 @@
5757
}
5858

5959
// Plugin constants
60-
define('MPT_VERSION', '0.7.0');
60+
define('MPT_VERSION', '0.7.1');
6161
define('MPT_CPT_NAME', 'member');
6262
define('MPT_TAXO_NAME', 'members-role');
6363

0 commit comments

Comments
 (0)