mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
- added nonce fields;
This commit is contained in:
+12
-6
@@ -155,7 +155,8 @@ jQuery(document).ready(function() {
|
||||
type: 'post',
|
||||
data: {
|
||||
action: 'um_remove_file',
|
||||
src: src
|
||||
src: src,
|
||||
nonce: um_scripts.nonce
|
||||
}
|
||||
});
|
||||
|
||||
@@ -175,7 +176,8 @@ jQuery(document).ready(function() {
|
||||
type: 'post',
|
||||
data: {
|
||||
action: 'um_remove_file',
|
||||
src: src
|
||||
src: src,
|
||||
nonce: um_scripts.nonce
|
||||
}
|
||||
});
|
||||
|
||||
@@ -260,7 +262,8 @@ jQuery(document).ready(function() {
|
||||
data: {
|
||||
action: 'um_ajax_paginate_posts',
|
||||
author: jQuery(this).data('author'),
|
||||
page: next_page
|
||||
page: next_page,
|
||||
nonce: um_scripts.nonce
|
||||
},
|
||||
complete: function() {
|
||||
parent.removeClass( 'loading' );
|
||||
@@ -284,7 +287,8 @@ jQuery(document).ready(function() {
|
||||
data: {
|
||||
action: 'um_ajax_paginate',
|
||||
hook: hook,
|
||||
args: args
|
||||
args: args,
|
||||
nonce: um_scripts.nonce
|
||||
},
|
||||
complete: function() {
|
||||
parent.removeClass( 'loading' );
|
||||
@@ -315,7 +319,8 @@ jQuery(document).ready(function() {
|
||||
action: 'um_muted_action',
|
||||
hook: hook,
|
||||
user_id: user_id,
|
||||
arguments: arguments
|
||||
arguments: arguments,
|
||||
nonce: um_scripts.nonce
|
||||
},
|
||||
success: function(data){
|
||||
|
||||
@@ -370,7 +375,8 @@ jQuery(document).ready(function() {
|
||||
child_callback: um_ajax_source,
|
||||
child_name: me.attr('name'),
|
||||
members_directory: me.attr('data-mebers-directory'),
|
||||
form_id: form_id
|
||||
form_id: form_id,
|
||||
nonce: um_scripts.nonce
|
||||
},
|
||||
success: function( data ){
|
||||
if( data.status == 'success' && parent.val() != '' ){
|
||||
|
||||
Reference in New Issue
Block a user