QQWorld Auto Save Images - Version 1.5.8

Version Description

Download this release

Release Info

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

Code changes from version 1.5.7.5 to 1.5.8

Files changed (1) hide show
  1. qqworld-auto-save-images.php +3 -1
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.5.7.5
7
  Author: Michael Wang
8
  Author URI: http://www.qqworld.org
9
  */
@@ -426,6 +426,7 @@ class QQWorld_auto_save_images {
426
  if ($post_type) {
427
  add_action($this->using_action.'_'.$post_type, array($this, 'fetch_images') );
428
  }
 
429
  }
430
 
431
  function remove_actions() {
@@ -433,6 +434,7 @@ class QQWorld_auto_save_images {
433
  if ($post_type) {
434
  remove_action($this->using_action.'_'.$post_type, array($this, 'fetch_images') );
435
  }
 
436
  }
437
 
438
  function utf8_urldecode($str) {
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.5.8
7
  Author: Michael Wang
8
  Author URI: http://www.qqworld.org
9
  */
426
  if ($post_type) {
427
  add_action($this->using_action.'_'.$post_type, array($this, 'fetch_images') );
428
  }
429
+ add_action('xmlrpc_publish_post', array($this, 'fetch_images') );
430
  }
431
 
432
  function remove_actions() {
434
  if ($post_type) {
435
  remove_action($this->using_action.'_'.$post_type, array($this, 'fetch_images') );
436
  }
437
+ remove_action('xmlrpc_publish_post', array($this, 'fetch_images') );
438
  }
439
 
440
  function utf8_urldecode($str) {