Version Description
Download this release
Release Info
Developer | qqworld |
Plugin | QQWorld Auto Save Images |
Version | 1.5.7 |
Comparing to | |
See all releases |
Code changes from version 1.5.6 to 1.5.7
lang/qqworld_auto_save_images-zh_CN.mo
CHANGED
Binary file
|
lang/qqworld_auto_save_images-zh_CN.po
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
"POT-Creation-Date: 2011-12-10 19:47:15+00:00\n"
|
6 |
-
"PO-Revision-Date: 2014-10-
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
@@ -133,7 +133,7 @@ msgstr "正常"
|
|
133 |
msgid "No posts found."
|
134 |
msgstr "未找到任何文章。"
|
135 |
|
136 |
-
msgid "
|
137 |
msgstr "有不存在的远程图像。"
|
138 |
|
139 |
msgid "All remote images have been saved."
|
@@ -145,10 +145,10 @@ msgstr "已扫描%d篇文章。"
|
|
145 |
msgid "%d posts have been scanned."
|
146 |
msgstr "已扫描%d篇文章。"
|
147 |
|
148 |
-
msgid "%d post
|
149 |
msgstr "已处理%d篇包含远程图像的文章。"
|
150 |
|
151 |
-
msgid "%d posts
|
152 |
msgstr "已处理%d篇包含远程图像的文章。"
|
153 |
|
154 |
msgid "found %d post including remote images."
|
@@ -157,16 +157,16 @@ msgstr "找到%d篇包含远程图像的文章。"
|
|
157 |
msgid "found %d posts including remote images."
|
158 |
msgstr "找到%d篇包含远程图像的文章。"
|
159 |
|
160 |
-
msgid "And with %d post
|
161 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
162 |
|
163 |
-
msgid "And with %d posts
|
164 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
165 |
|
166 |
-
msgid "%d post
|
167 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
168 |
|
169 |
-
msgid "%d posts
|
170 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
171 |
|
172 |
msgid "Scope of Post ID:"
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
"POT-Creation-Date: 2011-12-10 19:47:15+00:00\n"
|
6 |
+
"PO-Revision-Date: 2014-10-06 07:27+0800\n"
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
133 |
msgid "No posts found."
|
134 |
msgstr "未找到任何文章。"
|
135 |
|
136 |
+
msgid "Has missing images."
|
137 |
msgstr "有不存在的远程图像。"
|
138 |
|
139 |
msgid "All remote images have been saved."
|
145 |
msgid "%d posts have been scanned."
|
146 |
msgstr "已扫描%d篇文章。"
|
147 |
|
148 |
+
msgid "%d post included remote images processed."
|
149 |
msgstr "已处理%d篇包含远程图像的文章。"
|
150 |
|
151 |
+
msgid "%d posts included remote images processed."
|
152 |
msgstr "已处理%d篇包含远程图像的文章。"
|
153 |
|
154 |
msgid "found %d post including remote images."
|
157 |
msgid "found %d posts including remote images."
|
158 |
msgstr "找到%d篇包含远程图像的文章。"
|
159 |
|
160 |
+
msgid "And with %d post has missing images."
|
161 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
162 |
|
163 |
+
msgid "And with %d posts have missing images."
|
164 |
msgstr "其中有%d篇文章包含不存在的远程图像。"
|
165 |
|
166 |
+
msgid "%d post has missing images couldn't be processed."
|
167 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
168 |
|
169 |
+
msgid "%d posts have missing images couldn't be processed."
|
170 |
msgstr "%d篇包含不存在的远程图像的文章无法处理。"
|
171 |
|
172 |
msgid "Scope of Post ID:"
|
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 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
*/
|
@@ -83,7 +83,9 @@ class QQWorld_auto_save_images {
|
|
83 |
'post__in' => $post__in
|
84 |
);
|
85 |
$posts = get_posts($args);
|
86 |
-
|
|
|
|
|
87 |
exit;
|
88 |
}
|
89 |
|
@@ -124,7 +126,7 @@ class QQWorld_auto_save_images {
|
|
124 |
<td><a href="<?php echo get_edit_post_link($post_id); ?>" target="_blank"><?php echo $title; ?> ⇛</a></td>
|
125 |
<td><?php
|
126 |
if ($has_remote_images) {
|
127 |
-
echo $has_not_exits_remote_images ? '<span class="red">'.__('
|
128 |
} else _e('No remote images found.', 'qqworld_auto_save_images')
|
129 |
?></td>
|
130 |
</tr>
|
@@ -165,7 +167,7 @@ class QQWorld_auto_save_images {
|
|
165 |
<td><?php echo $post_id; ?></td>
|
166 |
<td><?php echo $post_type_object->labels->name; ?></td>
|
167 |
<td><a href="<?php echo get_edit_post_link($post_id); ?>" target="_blank"><?php echo $title; ?> ⇛</a></td>
|
168 |
-
<td><?php echo $has_not_exits_remote_images ? '<span class="red">'.__('
|
169 |
<td id="list-<?php echo $post_id; ?>"><input type="button" post-id="<?php echo $post_id; ?>" class="fetch-remote-images button button-primary" value="✍ <?php _e('Fetch', 'qqworld_auto_save_images'); ?>" /></td>
|
170 |
</tr>
|
171 |
<?php
|
@@ -469,11 +471,11 @@ class QQWorld_auto_save_images {
|
|
469 |
else count_html = sprintf("<?php _e( '%d posts have been scanned.', 'qqworld_auto_save_images'); ?>", count);
|
470 |
if (count_remote_images) {
|
471 |
count_remote_images = count_remote_images - count_not_exits_remote_images;
|
472 |
-
if (count_remote_images<=1) count_html += sprintf("<br /><?php _e( '%d post
|
473 |
-
else count_html += sprintf("<br /><?php _e( '%d posts
|
474 |
if (count_not_exits_remote_images) {
|
475 |
-
if (
|
476 |
-
else count_html += sprintf("<br /><?php _e( "%d posts
|
477 |
}
|
478 |
}
|
479 |
} else {
|
@@ -495,7 +497,7 @@ class QQWorld_auto_save_images {
|
|
495 |
post_id = new Array;
|
496 |
var data = 'action=save_remote_images_after_scan';
|
497 |
for (var p=r; p<r+speed; p++) {
|
498 |
-
if (typeof respond[p] != 'undefined') data += '&post_id[]='+respond[p]
|
499 |
}
|
500 |
$.ajax({
|
501 |
type: 'POST',
|
@@ -526,8 +528,8 @@ class QQWorld_auto_save_images {
|
|
526 |
if (count_remote_images==1) count_html += sprintf("<br /><?php _e( 'found %d post including remote images.', 'qqworld_auto_save_images'); ?>", count_remote_images);
|
527 |
else count_html += sprintf("<br /><?php _e( 'found %d posts including remote images.', 'qqworld_auto_save_images'); ?>", count_remote_images);
|
528 |
if (count_not_exits_remote_images) {
|
529 |
-
if (
|
530 |
-
else count_html += sprintf("<br /><?php _e( "And with %d posts
|
531 |
}
|
532 |
} else count_html += '<br /><?php _e('No post has remote images found.', 'qqworld_auto_save_images'); ?>';
|
533 |
} else {
|
@@ -549,7 +551,7 @@ class QQWorld_auto_save_images {
|
|
549 |
post_id = new Array;
|
550 |
var data = 'action=save_remote_images_list_all_posts';
|
551 |
for (var p=r; p<r+speed; p++) {
|
552 |
-
if (typeof respond[p] != 'undefined') data += '&post_id[]='+respond[p]
|
553 |
}
|
554 |
$.ajax({
|
555 |
type: 'POST',
|
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
|
7 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
*/
|
83 |
'post__in' => $post__in
|
84 |
);
|
85 |
$posts = get_posts($args);
|
86 |
+
$result=array();
|
87 |
+
foreach ($posts as $post) array_push($result, $post->ID);
|
88 |
+
echo json_encode($result);
|
89 |
exit;
|
90 |
}
|
91 |
|
126 |
<td><a href="<?php echo get_edit_post_link($post_id); ?>" target="_blank"><?php echo $title; ?> ⇛</a></td>
|
127 |
<td><?php
|
128 |
if ($has_remote_images) {
|
129 |
+
echo $has_not_exits_remote_images ? '<span class="red">'.__('Has missing images.', 'qqworld_auto_save_images').'</span>' : '<span class="green">'.__('All remote images have been saved.', 'qqworld_auto_save_images').'</span>';
|
130 |
} else _e('No remote images found.', 'qqworld_auto_save_images')
|
131 |
?></td>
|
132 |
</tr>
|
167 |
<td><?php echo $post_id; ?></td>
|
168 |
<td><?php echo $post_type_object->labels->name; ?></td>
|
169 |
<td><a href="<?php echo get_edit_post_link($post_id); ?>" target="_blank"><?php echo $title; ?> ⇛</a></td>
|
170 |
+
<td><?php echo $has_not_exits_remote_images ? '<span class="red">'.__('Has missing images.', 'qqworld_auto_save_images').'</span>' : __('Normal', 'qqworld_auto_save_images'); ?></a></td>
|
171 |
<td id="list-<?php echo $post_id; ?>"><input type="button" post-id="<?php echo $post_id; ?>" class="fetch-remote-images button button-primary" value="✍ <?php _e('Fetch', 'qqworld_auto_save_images'); ?>" /></td>
|
172 |
</tr>
|
173 |
<?php
|
471 |
else count_html = sprintf("<?php _e( '%d posts have been scanned.', 'qqworld_auto_save_images'); ?>", count);
|
472 |
if (count_remote_images) {
|
473 |
count_remote_images = count_remote_images - count_not_exits_remote_images;
|
474 |
+
if (count_remote_images<=1) count_html += sprintf("<br /><?php _e( '%d post included remote images processed.', 'qqworld_auto_save_images'); ?>", count_remote_images);
|
475 |
+
else count_html += sprintf("<br /><?php _e( '%d posts included remote images processed.', 'qqworld_auto_save_images'); ?>", count_remote_images);
|
476 |
if (count_not_exits_remote_images) {
|
477 |
+
if (count_not_exits_remote_images==1) count_html += sprintf("<br /><?php _e( "%d post has missing images couldn't be processed.", 'qqworld_auto_save_images'); ?>", count_not_exits_remote_images);
|
478 |
+
else count_html += sprintf("<br /><?php _e( "%d posts have missing images couldn't be processed.", 'qqworld_auto_save_images'); ?>", count_not_exits_remote_images);
|
479 |
}
|
480 |
}
|
481 |
} else {
|
497 |
post_id = new Array;
|
498 |
var data = 'action=save_remote_images_after_scan';
|
499 |
for (var p=r; p<r+speed; p++) {
|
500 |
+
if (typeof respond[p] != 'undefined') data += '&post_id[]='+respond[p];
|
501 |
}
|
502 |
$.ajax({
|
503 |
type: 'POST',
|
528 |
if (count_remote_images==1) count_html += sprintf("<br /><?php _e( 'found %d post including remote images.', 'qqworld_auto_save_images'); ?>", count_remote_images);
|
529 |
else count_html += sprintf("<br /><?php _e( 'found %d posts including remote images.', 'qqworld_auto_save_images'); ?>", count_remote_images);
|
530 |
if (count_not_exits_remote_images) {
|
531 |
+
if (count_not_exits_remote_images==1) count_html += sprintf("<br /><?php _e( "And with %d post has missing images.", 'qqworld_auto_save_images'); ?>", count_not_exits_remote_images);
|
532 |
+
else count_html += sprintf("<br /><?php _e( "And with %d posts have missing images.", 'qqworld_auto_save_images'); ?>", count_not_exits_remote_images);
|
533 |
}
|
534 |
} else count_html += '<br /><?php _e('No post has remote images found.', 'qqworld_auto_save_images'); ?>';
|
535 |
} else {
|
551 |
post_id = new Array;
|
552 |
var data = 'action=save_remote_images_list_all_posts';
|
553 |
for (var p=r; p<r+speed; p++) {
|
554 |
+
if (typeof respond[p] != 'undefined') data += '&post_id[]='+respond[p];
|
555 |
}
|
556 |
$.ajax({
|
557 |
type: 'POST',
|