Skip to content

Commit

Permalink
Video not rendering from video link - FIXED
Browse files Browse the repository at this point in the history
  • Loading branch information
kprajapatii committed Jan 18, 2019
1 parent 2b1d6ef commit ac7dc59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions change_log.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
v2.0.0.45
Listing without author assigned always shows author actions widget - FIXED
Video not rendering from video link - FIXED

v2.0.0.44
Astra theme archive page layout compatibility - ADDED
Expand Down
11 changes: 8 additions & 3 deletions includes/custom-fields/output-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1610,10 +1610,15 @@ function geodir_cf_textarea($html,$location,$cf,$p='',$output=''){
// if($output=='' || isset($output['value']))$html .= wpautop($gd_post->{$cf['htmlvar_name']});
if($cf['htmlvar_name']!='post_content'){
if($output=='' || isset($output['value'])){
if(isset($output['strip'])){
$html .= wp_strip_all_tags( wpautop(do_shortcode(stripslashes($gd_post->{$cf['htmlvar_name']}))) );
$value = stripslashes( $gd_post->{$cf['htmlvar_name']} );
if(isset($output['strip'])){
$html .= wp_strip_all_tags( wpautop( do_shortcode( $value ) ) );
}else{
$html .= wpautop(do_shortcode(stripslashes($gd_post->{$cf['htmlvar_name']})));
if ( $cf['htmlvar_name'] == 'video' ) { // Video embed.
global $wp_embed;
$value = $wp_embed->autoembed( $value );
}
$html .= wpautop( do_shortcode( $value ) );
}
}
}else{
Expand Down

0 comments on commit ac7dc59

Please sign in to comment.