Check if title has content. Closes #250.

This commit is contained in:
Mike Jolley 2011-11-22 15:30:09 +00:00
parent 75ba3967c3
commit 587924f667
1 changed files with 2 additions and 1 deletions

View File

@ -564,7 +564,8 @@ if (!function_exists('woocommerce_product_reviews_tab')) {
if (!function_exists('woocommerce_product_description_panel')) {
function woocommerce_product_description_panel() {
echo '<div class="panel" id="tab-description">';
echo '<h2>' . apply_filters('woocommerce_product_description_heading', __('Product Description', 'woothemes')) . '</h2>';
$heading = apply_filters('woocommerce_product_description_heading', __('Product Description', 'woothemes'));
if ($heading) echo '<h2>' . $heading . '</h2>';
the_content();
echo '</div>';
}