Skip to content

Commit

Permalink
FIX: uploadImageToOss
Browse files Browse the repository at this point in the history
  • Loading branch information
yiichou committed Aug 20, 2018
1 parent 277562c commit f1dabcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ____________________
#### 修订内容:

1. 修复不能使用 OSS 根目录作为存储路径的 bug #70
2. 修复图片服务开启时, 缩略图依旧被上传的 bug #71
2. 修复图片服务开启时, 缩略图依旧被上传的 bug #72
3. 新增插件自动更新功能
4. 为 Bucket Host 增加 fallback 值
5. 调整部分配置选项
Expand Down
2 changes: 1 addition & 1 deletion src/Upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function uploadOriginToOss($file)
*/
public function uploadImageToOss($file)
{
if (wp_debug_backtrace_summary(null, 4, false)[0] == 'WP_Image_Editor_GD->multi_resize') {
if (stristr(wp_debug_backtrace_summary(null, 4, false)[0], '->multi_resize')) {
Config::$enableImgService || $this->uploadFileToOss($file);
Config::$noLocalSaving && Delete::deleteLocalFile($file);
} else {
Expand Down

0 comments on commit f1dabcc

Please sign in to comment.