Fix duplicate append image style param (#26)

pull/29/head v1.4.8
Lu Fei 2023-12-13 19:55:04 -06:00 committed by GitHub
parent 9a9882fd96
commit 9852fff6c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -3,7 +3,7 @@
Plugin Name: OSS Aliyun
Plugin URI: https://github.com/sy-records/aliyun-oss-wordpress
Description: 使用阿里云对象存储 OSS 作为附件存储空间。This is a plugin that uses Aliyun Object Storage Service for attachments remote saving.
Version: 1.4.7
Version: 1.4.8
Author: 沈唁
Author URI: https://qq52o.me
License: Apache2.0
@ -19,7 +19,7 @@ use OSS\Credentials\CredentialsProvider;
use AlibabaCloud\Credentials\Credential;
use OSS\Credentials\StaticCredentialsProvider;
define('OSS_VERSION', '1.4.7');
define('OSS_VERSION', '1.4.8');
define('OSS_BASEFOLDER', plugin_basename(dirname(__FILE__)));
if (!function_exists('get_home_path')) {
@ -509,6 +509,8 @@ function oss_setting_content_style($content)
$content = str_replace($item, $item . $style, $content);
}
}
$content = str_replace($style . $style, $style, $content);
}
}
return $content;
@ -529,6 +531,8 @@ function oss_setting_post_thumbnail_style($html, $post_id, $post_image_id)
$html = str_replace($item, $item . $style, $html);
}
}
$html = str_replace($style . $style, $style, $html);
}
}
return $html;

View File

@ -5,7 +5,7 @@ Tags: oss, 阿里云, 对象存储, aliyun
Requires at least: 4.2
Tested up to: 6.4
Requires PHP: 7.0
Stable tag: 1.4.7
Stable tag: 1.4.8
License: Apache2.0
License URI: http://www.apache.org/licenses/LICENSE-2.0.html
@ -73,6 +73,10 @@ License URI: http://www.apache.org/licenses/LICENSE-2.0.html
== Changelog ==
= 1.4.8 =
- 修复图片处理参数重复添加
= 1.4.7 =
- 修复 `upload_url_path` 设置为 `.` 时删除失败