Move get out of loop

Just safety in case this borks PHP5.2
This commit is contained in:
Robin Cornett
2017-04-08 15:38:25 -04:00
parent 4394e436e2
commit 338fc6e41d
+2 -1
View File
@@ -40,7 +40,8 @@ function display_featured_image_genesis_get_term_image_id( $image_id = '' ) {
$post = get_post( get_the_ID() );
$taxonomies = array();
foreach ( get_object_taxonomies( $post, 'names' ) as $taxonomy ) {
$object_tax = get_object_taxonomies( $post, 'names' );
foreach ( $object_tax as $taxonomy ) {
$taxonomies[] = $taxonomy;
}
$args = array(