From 338fc6e41d651c4063c9bd3125846719091169e6 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Sat, 8 Apr 2017 15:38:25 -0400 Subject: [PATCH] Move get out of loop Just safety in case this borks PHP5.2 --- includes/helper-functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index 5f5eec3..25d61dc 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -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(