WordPress.org

Ready to get started?Download WordPress

Forums

Simple Image Sizes
Media resize settings should list all non built-in post types (2 posts)

  1. klihelp
    Member
    Posted 1 year ago #

    Sometimes custom post type doesn't have post-thumbnail support. But image attachments have thumbnail support.
    For this reason all non built-in post types should be listed for filtering.

    Not sure how, but consider to rethink the section in options-media.php#L81
    // Avoid the post_types without post thumbnails feature

    Also, the logic should be the otherway around in the IF:

    // if( !array_key_exists( 'thumbnail' , $_wp_post_type_features[$ptype->name] ) || $_wp_post_type_features[$ptype->name] == false ) {
    
    if( $_wp_post_type_features[$ptype->name] == false || !array_key_exists( 'thumbnail' , $_wp_post_type_features[$ptype->name] ) ) {

    http://wordpress.org/extend/plugins/simple-image-sizes/

  2. Rahe
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Good idea, i will use the post_type_support function for next release :)

    Rahe

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic