mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-18 22:13:20 +09:00
Clean up static methods
Needs lots more testing
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
|
||||
class Display_Featured_Image_Genesis_Admin {
|
||||
|
||||
public function __construct( $common ) {
|
||||
$this->common = $common;
|
||||
}
|
||||
|
||||
public function set_up_columns() {
|
||||
$this->set_up_taxonomy_columns();
|
||||
$this->set_up_post_type_columns();
|
||||
@@ -101,11 +105,7 @@ class Display_Featured_Image_Genesis_Admin {
|
||||
$taxonomy = filter_input( INPUT_POST, 'taxonomy', FILTER_SANITIZE_STRING );
|
||||
$taxonomy = ! is_null( $taxonomy ) ? $taxonomy : get_current_screen()->taxonomy;
|
||||
$alt = get_term( $term_id, $taxonomy )->name;
|
||||
$id = $term_meta['term_image'];
|
||||
|
||||
if ( ! is_numeric( $term_meta['term_image'] ) ) {
|
||||
$id = Display_Featured_Image_Genesis_Common::get_image_id( $term_meta['term_image'] );
|
||||
}
|
||||
$id = is_numeric( $term_meta['term_image'] ) ? $term_meta['term_image'] : $this->common->get_image_id( $term_meta['term_image'] );
|
||||
|
||||
$preview = apply_filters(
|
||||
'display_featured_image_genesis_admin_term_thumbnail',
|
||||
|
||||
Reference in New Issue
Block a user