- fixed verify nonce;

This commit is contained in:
nikitasinelnikov
2018-12-07 15:26:42 +02:00
parent 3383c69e2d
commit e7c893cdea
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ if ( ! class_exists( 'um\admin\Admin_Functions' ) ) {
* @param bool $action
*/
function check_ajax_nonce( $action = false ) {
$nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';
$nonce = isset( $_REQUEST['nonce'] ) ? $_REQUEST['nonce'] : '';
$action = empty( $action ) ? 'um-admin-nonce' : $action;
if ( ! wp_verify_nonce( $nonce, $action ) ) {
+1 -1
View File
@@ -23,7 +23,7 @@ if ( ! class_exists( 'UM_Functions' ) ) {
* @param bool $action
*/
function check_ajax_nonce( $action = false ) {
$nonce = isset( $_POST['nonce'] ) ? $_POST['nonce'] : '';
$nonce = isset( $_REQUEST['nonce'] ) ? $_REQUEST['nonce'] : '';
$action = empty( $action ) ? 'um-frontend-nonce' : $action;
if ( ! wp_verify_nonce( $nonce, $action ) ) {
+1
View File
@@ -152,6 +152,7 @@ The plugin works with popular caching plugins by automatically excluding Ultimat
- Fixed admin forms esc_attr value
- Fixed admin forms buttons wp_unslash
- Fixed get/clean plugin upgrades on multisites
- Fixed verify nonce on $_GET requests
* Deprecated:
- removed "UM_TEXTDOMAIN" constant