Shortcode fix Closes #2299.

This commit is contained in:
Mike Jolley 2013-01-29 13:01:09 +00:00
parent eb1469a2ab
commit 4c7812ebb2
2 changed files with 12 additions and 10 deletions

View File

@ -235,7 +235,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
@ -303,7 +303,7 @@ class WC_Shortcodes {
woocommerce_reset_loop(); woocommerce_reset_loop();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
@ -361,7 +361,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
@ -437,7 +437,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
@ -497,7 +497,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
@ -665,7 +665,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
/** /**
@ -721,7 +721,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
/** /**
@ -783,7 +783,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
/** /**
@ -846,7 +846,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }
@ -898,7 +898,7 @@ class WC_Shortcodes {
wp_reset_postdata(); wp_reset_postdata();
return ob_get_clean(); return '<div class="woocommerce">' . ob_get_clean() . '</div>';
} }

View File

@ -1757,6 +1757,8 @@ class Woocommerce {
$before = empty( $wrapper['before'] ) ? '<div class="' . $wrapper['class'] . '">' : $wrapper['before']; $before = empty( $wrapper['before'] ) ? '<div class="' . $wrapper['class'] . '">' : $wrapper['before'];
$after = empty( $wrapper['after'] ) ? '</div>' : $wrapper['after']; $after = empty( $wrapper['after'] ) ? '</div>' : $wrapper['after'];
var_dump($before);
echo $before; echo $before;
call_user_func( $function, $atts ); call_user_func( $function, $atts );
echo $after; echo $after;