mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-16 13:03:21 +09:00
Fix early return in admin columns setup
This commit is contained in:
@@ -56,7 +56,7 @@ class Display_Featured_Image_Genesis_Admin {
|
||||
$post_types['page'] = 'page';
|
||||
foreach ( $post_types as $post_type ) {
|
||||
if ( ! post_type_supports( $post_type, 'thumbnail' ) ) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
add_filter( "manage_edit-{$post_type}_columns", array( $this, 'add_column' ) );
|
||||
add_action( "manage_{$post_type}_posts_custom_column", array( $this, 'custom_post_columns' ), 10, 2 );
|
||||
|
||||
Reference in New Issue
Block a user