Plugin Directory

Changeset 3021616


Ignore:
Timestamp:
01/14/2024 06:55:47 PM (2 years ago)
Author:
seanchayes
Message:

Better default thumb size on ajax select and inject

File:
1 edited

Legend:

Unmodified
Added
Removed
  • featured-image-admin-thumb-fiat/trunk/admin/class-featured-image-admin-thumb-admin.php

    r2506825 r3021616  
    117117    public function fiat_init_columns() {
    118118
    119         $available_post_types = array_diff( get_post_types(), apply_filters( 'fiat/restrict_post_types', $this->default_excluded_post_types ) );
     119        $available_post_types = array_keys( array_diff( array_flip ( get_post_types_by_support('thumbnail') ), apply_filters( 'fiat/restrict_post_types', $this->default_excluded_post_types ) ) );
    120120
    121121        if ( $this->is_edd_active && isset( $available_post_types['download'] ) ) {
     
    281281                if ( isset( $_POST['thumbnail_id'] ) && ! empty( $_POST['thumbnail_id'] ) ) {
    282282                    $thumbnail_id = intval( $_POST['thumbnail_id'] );
    283                     $thumb_url    = get_image_tag( $thumbnail_id, '', '', '', $this->fiat_image_size );
     283                    $thumb_url    = get_image_tag( $thumbnail_id, '', '', '', array( 60, 60 ) );
    284284                    $html         = sprintf(
    285285                        $this->template_html,
Note: See TracChangeset for help on using the changeset viewer.