Why do Password Protected Products not have Entry Wrap?

In woocommerce.php in framework/functions/plugins you have

function x_woocommerce_before_single_product() {
  global $post;
  if ( empty($post->post_password) ) echo '<div class="entry-wrap"><div class="entry-content">';
}

function x_woocommerce_after_single_product() {
  global $post;
  if ( empty($post->post_password) ) echo '</div></div>';
}

add_action( 'woocommerce_before_single_product', 'x_woocommerce_before_single_product', 10 );
add_action( 'woocommerce_after_single_product', 'x_woocommerce_after_single_product', 10 );

This results in password protected products lacking the entry-wrap and entry-content divs and not showing up properly

I’ve overridden it in my child them but I’m just interested to see if there’s a specific reason to set it up like that?

Hey @waterbarry,

Thanks for writing in! This changed was made as a resolution to a bug which has been explained in detail on this thread:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.