File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -807,7 +807,7 @@ public function show_duplicate_list_message() {
807
807
*/
808
808
public function add_force_sync_button ( $ views ) {
809
809
810
- $ link = wp_nonce_url ( add_query_arg ( [ 'ctct_list_sync ' => 'true ' ] ), 'ctct_reysncing ' , 'ctct_resyncing ' );
810
+ $ link = wp_nonce_url ( add_query_arg ( [ 'ctct_list_sync ' => 'true ' ] ), 'ctct_resyncing ' , 'ctct_resyncing ' );
811
811
812
812
$ views ['sync ' ] = '<strong><a href=" ' . $ link . '"> ' . __ ( 'Sync Lists with Constant Contact ' , 'constant-contact-forms ' ) . '</a></strong> ' ;
813
813
@@ -825,7 +825,7 @@ public function check_for_list_sync_request() {
825
825
826
826
$ ctct_resyncing = filter_input ( INPUT_GET , 'ctct_resyncing ' , FILTER_SANITIZE_STRING );
827
827
828
- if ( ! isset ( $ ctct_resyncing ) || ! is_admin () ) {
828
+ if ( ! isset ( $ ctct_resyncing ) || ! wp_verify_nonce ( $ ctct_resyncing , ' ctct_resyncing ' ) || ! is_admin () ) {
829
829
return ;
830
830
}
831
831
You can’t perform that action at this time.
0 commit comments