Clean up static methods

Needs lots more testing
This commit is contained in:
Robin Cornett
2015-06-03 14:36:16 -04:00
parent 955fba0e67
commit 93b7c5aa35
11 changed files with 141 additions and 116 deletions
@@ -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',