Skip to content

Commit

Permalink
add shortcodes support in variation description
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelienpierre committed Sep 21, 2015
1 parent f9fb149 commit aead6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-wc-product-variation.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,6 @@ public function get_formatted_name() {
* @return string
*/
public function get_variation_description() {
return wpautop( wp_kses_post( get_post_meta( $this->variation_id, '_variation_description', true ) ) );
return wpautop( do_shortcode( wp_kses_post( get_post_meta( $this->variation_id, '_variation_description', true ) ) ) );
}
}

0 comments on commit aead6f1

Please sign in to comment.