QQWorld Auto Save Images - Version 1.7.3

Version Description

Download this release

Release Info

Developer qqworld
Plugin Icon 128x128 QQWorld Auto Save Images
Version 1.7.3
Comparing to
See all releases

Code changes from version 1.7.2 to 1.7.3

Files changed (2) hide show
  1. js/script-post.js +10 -1
  2. qqworld-auto-save-images.php +2 -2
js/script-post.js CHANGED
@@ -51,7 +51,13 @@ jQuery(function($) {
51
  }
52
  $('#save-remote-images-button').data('noty').close();
53
  var n = noty(options);
54
- if (respond.content) $('#content').val(respond.content);
 
 
 
 
 
 
55
  }
56
  });
57
  break;
@@ -88,6 +94,9 @@ jQuery(function($) {
88
  theme: noty_theme
89
  });
90
  if (respond.content) tinyMCE.activeEditor.setContent(respond.content);
 
 
 
91
  }
92
  });
93
  break;
51
  }
52
  $('#save-remote-images-button').data('noty').close();
53
  var n = noty(options);
54
+ if (respond.content) {
55
+ console.log(respond.content)
56
+ $('#content').val(respond.content);
57
+ }
58
+ },
59
+ error: function() {
60
+ console.log(1);
61
  }
62
  });
63
  break;
94
  theme: noty_theme
95
  });
96
  if (respond.content) tinyMCE.activeEditor.setContent(respond.content);
97
+ },
98
+ error: function() {
99
+ console.log(1);
100
  }
101
  });
102
  break;
qqworld-auto-save-images.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: QQWorld Auto Save Images
4
  Plugin URI: https://wordpress.org/plugins/qqworld-auto-save-images/
5
  Description: Automatically keep the all remote picture to the local, and automatically set featured image.
6
- Version: 1.7.2
7
  Author: Michael Wang
8
  Author URI: http://www.qqworld.org
9
  Text Domain: qqworld_auto_save_images
@@ -644,7 +644,7 @@ class QQWorld_auto_save_images {
644
  $result['type'] = 1;
645
  $result['msg'] = __('No remote images found.', 'qqworld_auto_save_images');
646
  }
647
- $result['content'] = $content;
648
  echo json_encode($result);
649
  exit;
650
  }
3
  Plugin Name: QQWorld Auto Save Images
4
  Plugin URI: https://wordpress.org/plugins/qqworld-auto-save-images/
5
  Description: Automatically keep the all remote picture to the local, and automatically set featured image.
6
+ Version: 1.7.3
7
  Author: Michael Wang
8
  Author URI: http://www.qqworld.org
9
  Text Domain: qqworld_auto_save_images
644
  $result['type'] = 1;
645
  $result['msg'] = __('No remote images found.', 'qqworld_auto_save_images');
646
  }
647
+ $result['content'] = stripslashes($content);
648
  echo json_encode($result);
649
  exit;
650
  }