Skip to content

Commit

Permalink
stop using jQuery.parseJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnderson684 committed Feb 27, 2018
1 parent 5edc3c2 commit 6fe02b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-udm-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if (!class_exists('Updraft_Manager_Updater_1_5')):
class Updraft_Manager_Updater_1_5 {

public $version = '1.5.0';
public $version = '1.5.1';

public $relative_plugin_file;
public $slug;
Expand Down Expand Up @@ -530,7 +530,7 @@ public function admin_footer() {
$.post(ajaxurl, sdata, function(response, data) {
$(button).prop('disabled', false).html('<?php echo esc_js(__('Connect', 'udmupdater')); ?>');
try {
resp = $.parseJSON(response);
resp = JSON.parse(response);
if (resp.hasOwnProperty('code')) {
console.log('Code: '+resp.code);
if (resp.code == 'INVALID') {
Expand Down

0 comments on commit 6fe02b3

Please sign in to comment.