2011年最后一天,de各种bug,唉

某童鞋使用的twenty eleven主题,functions.php中默认有以下代码:

1
2
3
4
5
6
7
8
    // We'll be using post thumbnails for custom header images on posts and pages.
    // We want them to be the size of the header image that we just defined
    // Larger images will be auto-cropped to fit, smaller ones will be ignored. See header.php.
    set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );

    // Add Twenty Eleven's custom image sizes
    add_image_size( 'large-feature', HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, TRUE ); // Used for large feature (header) images
    add_image_size( 'small-feature', 500, 300 ); // Used for featured posts if a large-feature doesn't exist

由于以上代码添加的large-feature类型的图片缩略图强制crop (裁剪)图片,因此,很容易与WP后台默认的那三种图片之一的large类型冲突(导致生成的文件名称一样).
再加上,上面的post-thumbnail与large-feature是同样尺寸的文件(实际上是同一文件有两个马甲),因Hacklog Remote Attachment是一个一个上传的,同名的文件导致此插件的出bug.

花了好久才修复~~ (一直没找到是什么原因导致bug产生的,后来一路dump才找到) :mad:
然后,Hacklog Remote Attachment Upyun(又拍云版) 也随之更新了。

同时更新的还有Down As PDF,这个更新比较给力,修改比较大,推荐使用。

最后还有Hacklog Remote Image Autosave插件有各种@TODO没有时间处理了…先休息下 :arrow:

更多
3 Responses Post a comment
  1. vaman

    我去 down as pdf这个给力啊

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS