Version Description
Download this release
Release Info
Developer | qqworld |
Plugin | QQWorld Auto Save Images |
Version | 1.7.10.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.10 to 1.7.10.1
lang/qqworld_auto_save_images-zh_CN.mo
CHANGED
Binary file
|
lang/qqworld_auto_save_images-zh_CN.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
-
"POT-Creation-Date: 2014-11-
|
6 |
-
"PO-Revision-Date: 2014-11-
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
@@ -395,6 +395,10 @@ msgstr "最大图像尺寸"
|
|
395 |
msgid "Automatic reduction is greater than the size of the picture."
|
396 |
msgstr "自动缩小大于改尺寸的图像。"
|
397 |
|
|
|
|
|
|
|
|
|
398 |
#: qqworld-auto-save-images.php:496 qqworld-auto-save-images.php:498
|
399 |
msgid "Exclude Domain/Keyword"
|
400 |
msgstr "排除域名/关键词"
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: QQworld Auto Save Images\n"
|
4 |
"Report-Msgid-Bugs-To: http://www.qqworld.org\n"
|
5 |
+
"POT-Creation-Date: 2014-11-21 14:06+0800\n"
|
6 |
+
"PO-Revision-Date: 2014-11-21 14:06+0800\n"
|
7 |
"Last-Translator: Michael Wang <admin@qqworld.org>\n"
|
8 |
"Language-Team: QQWorld <admin@qqworld.org>\n"
|
9 |
"Language: zh_CN\n"
|
395 |
msgid "Automatic reduction is greater than the size of the picture."
|
396 |
msgstr "自动缩小大于改尺寸的图像。"
|
397 |
|
398 |
+
#: qqworld-auto-save-images.php:484
|
399 |
+
msgid "Your server PHP version lower than 5.4, so this feature not works."
|
400 |
+
msgstr "服务器PHP的版本低于5.4,所以此功能无法使用。"
|
401 |
+
|
402 |
#: qqworld-auto-save-images.php:496 qqworld-auto-save-images.php:498
|
403 |
msgid "Exclude Domain/Keyword"
|
404 |
msgstr "排除域名/关键词"
|
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.10
|
7 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
Text Domain: qqworld_auto_save_images
|
@@ -481,14 +481,14 @@ class QQWorld_auto_save_images {
|
|
481 |
</fieldset></td>
|
482 |
</tr>
|
483 |
<tr valign="top">
|
484 |
-
<th scope="row"><label><?php _e('Maximum Picture Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Automatic reduction is greater than the size of the picture.", 'qqworld_auto_save_images'); ?>"></span></th>
|
485 |
<td><fieldset>
|
486 |
<legend class="screen-reader-text"><span><?php _e('Maximum Picture Size', 'qqworld_auto_save_images'); ?></span></legend>
|
487 |
<label for="qqworld_auto_save_images_maximum_picture_size_width">
|
488 |
-
<?php _e('Width:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_maximum_picture_size[width]" class="small-text" type="text" id="qqworld_auto_save_images_minimum_picture_size_width" value="<?php echo $this->maximum_picture_size['width']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
489 |
</label><br />
|
490 |
<label for="qqworld_auto_save_images_maximum_picture_size_height">
|
491 |
-
<?php _e('Height:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_maximum_picture_size[height]" class="small-text" type="text" id="qqworld_auto_save_images_maximum_picture_size_height" value="<?php echo $this->maximum_picture_size['height']; ?>" /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
492 |
</label>
|
493 |
</fieldset></td>
|
494 |
</tr>
|
@@ -1119,7 +1119,7 @@ class QQWorld_auto_save_images {
|
|
1119 |
}
|
1120 |
|
1121 |
// Automatic reduction pictures size
|
1122 |
-
list($file, $width, $height) = $this->automatic_reduction($file);
|
1123 |
|
1124 |
$res=wp_upload_bits($img_name,'',$file);
|
1125 |
$attachment_id = $this->insert_attachment($res['file'], $post_id);
|
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.10.1
|
7 |
Author: Michael Wang
|
8 |
Author URI: http://www.qqworld.org
|
9 |
Text Domain: qqworld_auto_save_images
|
481 |
</fieldset></td>
|
482 |
</tr>
|
483 |
<tr valign="top">
|
484 |
+
<th scope="row"><label><?php _e('Maximum Picture Size', 'qqworld_auto_save_images'); ?></label> <span class="icon help" title="<?php _e("Automatic reduction is greater than the size of the picture.", 'qqworld_auto_save_images'); ?>"></span><?php if ( phpversion() < 5.4 ) : ?> <span class="icon help" title="<?php _e("Your server PHP version lower than 5.4, so this feature not works.", 'qqworld_auto_save_images'); ?>"></span><?php endif; ?></th>
|
485 |
<td><fieldset>
|
486 |
<legend class="screen-reader-text"><span><?php _e('Maximum Picture Size', 'qqworld_auto_save_images'); ?></span></legend>
|
487 |
<label for="qqworld_auto_save_images_maximum_picture_size_width">
|
488 |
+
<?php _e('Width:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_maximum_picture_size[width]" class="small-text" type="text" id="qqworld_auto_save_images_minimum_picture_size_width" value="<?php echo $this->maximum_picture_size['width']; ?>"<?php if ( phpversion() < 5.4 ) echo ' readonly'; ?> /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
489 |
</label><br />
|
490 |
<label for="qqworld_auto_save_images_maximum_picture_size_height">
|
491 |
+
<?php _e('Height:', 'qqworld_auto_save_images'); ?> <input name="qqworld_auto_save_images_maximum_picture_size[height]" class="small-text" type="text" id="qqworld_auto_save_images_maximum_picture_size_height" value="<?php echo $this->maximum_picture_size['height']; ?>"<?php if ( phpversion() < 5.4 ) echo ' readonly'; ?> /> <?php _e('(px)', 'qqworld_auto_save_images'); ?>
|
492 |
</label>
|
493 |
</fieldset></td>
|
494 |
</tr>
|
1119 |
}
|
1120 |
|
1121 |
// Automatic reduction pictures size
|
1122 |
+
if ( phpversion() >= 5.4 ) list($file, $width, $height) = $this->automatic_reduction($file);
|
1123 |
|
1124 |
$res=wp_upload_bits($img_name,'',$file);
|
1125 |
$attachment_id = $this->insert_attachment($res['file'], $post_id);
|