diff --git a/change_log.txt b/change_log.txt index f3f737fa5..5b1e8cb36 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ v2.0.0.47 Edit post permalink button missing so permalink can't be edited - FIXED Radio button and text overlap on add listing page - FIXED +Twitter feed custom field no longer working - FIXED v2.0.0.46 Some custom fields should store is_default = 0 during v1 to v2 conversion - FIXED diff --git a/includes/custom-fields/output-filter-functions.php b/includes/custom-fields/output-filter-functions.php index 90ca60cbd..79ed5a6d8 100644 --- a/includes/custom-fields/output-filter-functions.php +++ b/includes/custom-fields/output-filter-functions.php @@ -17,10 +17,10 @@ * @return string The html to output. */ function geodir_predefined_custom_field_output_twitter_feed($html,$location,$cf){ - global $post; + global $gd_post; - if (isset($post->{$cf['htmlvar_name']}) && $post->{$cf['htmlvar_name']} != '' ): + if (isset($gd_post->{$cf['htmlvar_name']}) && $gd_post->{$cf['htmlvar_name']} != '' ): $class = ($cf['htmlvar_name'] == 'geodir_timing') ? "geodir-i-time" : "geodir-i-text"; @@ -37,7 +37,7 @@ function geodir_predefined_custom_field_output_twitter_feed($html,$location,$cf) $html = '
'; - $html .= 'Tweets by '.$post->{$cf['htmlvar_name']}.' '; + $html .= '' . wp_sprintf( __( 'Tweets by %s', 'geodirectory' ), $gd_post->{$cf['htmlvar_name']} ) . ' '; $html .= '
'; endif;