mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-11 18:46:03 +09:00
Move get out of loop
Just safety in case this borks PHP5.2
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user