Plugin Directory

Changeset 2506825


Ignore:
Timestamp:
03/31/2021 03:08:33 PM (5 years ago)
Author:
seanchayes
Message:

Using previous line of code to detect if thumb columns are to be displayed

Location:
featured-image-admin-thumb-fiat
Files:
3 deleted
1 edited

Legend:

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

    r2506249 r2506825  
    117117    public function fiat_init_columns() {
    118118
    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 ) ) );
     119        $available_post_types = array_diff( get_post_types(), apply_filters( 'fiat/restrict_post_types', $this->default_excluded_post_types ) );
    120120
    121121        if ( $this->is_edd_active && isset( $available_post_types['download'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.