mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-19 14:33:32 +09:00
Fix term_meta
4.3 backwards compat things
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user