Workaround relevanssi Closes #4873

This commit is contained in:
Mike Jolley 2014-02-24 15:19:12 +00:00
parent 38872b8536
commit 36de82e428
1 changed files with 5 additions and 0 deletions

View File

@ -17,7 +17,12 @@ class WC_Shortcode_Cart {
* @param array $atts
*/
public static function output( $atts ) {
// Check cart class is loaded or abort
if ( is_null( WC()->cart ) ) {
return;
}
// Constants
if ( ! defined( 'WOOCOMMERCE_CART' ) ) {
define( 'WOOCOMMERCE_CART', true );
}