Fix term_meta

4.3 backwards compat things
This commit is contained in:
Robin Cornett
2015-11-17 16:50:44 -05:00
parent 37422ecc0b
commit 362a25a40d
3 changed files with 10 additions and 5 deletions
+4 -2
View File
@@ -33,8 +33,10 @@ function display_featured_image_genesis_get_term_image_id( $image_id = '' ) {
}
function displayfeaturedimagegenesis_term_image( $term_id ) {
$image_id = get_term_meta( $term_id, 'displayfeaturedimagegenesis', true );
function displayfeaturedimagegenesis_term_image( $term_id, $image_id = '' ) {
if ( function_exists( 'get_term_meta' ) ) {
$image_id = get_term_meta( $term_id, 'displayfeaturedimagegenesis', true );
}
if ( ! $image_id ) {
$term_meta = get_option( "displayfeaturedimagegenesis_$term_id" );
$image_id = $term_meta['term_image'];