upgraded to 4.14
This commit is contained in:
@ -135,7 +135,7 @@ function et_theme_builder_frontend_enqueue_styles( $layouts ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! is_singular() || et_core_is_fb_enabled() ) {
|
||||
if ( ! is_singular() && ! et_core_is_fb_enabled() ) {
|
||||
// Create styles managers so they can enqueue styles early enough.
|
||||
// What styles are created and how they are enqueued:
|
||||
// - In FE, singular post view:
|
||||
|
@ -131,7 +131,9 @@ function et_theme_builder_wc_set_global_objects( $conditional_tags = array() ) {
|
||||
// Set current post ID as product's ID. `ET_Theme_Builder_Woocommerce_Product_Variable_Placeholder`
|
||||
// handles all placeholder related value but product ID need to be manually set to match current
|
||||
// post's ID. This is especially needed when add-ons is used and accessing get_id() method.
|
||||
$product->set_id( $post->ID );
|
||||
if ( isset( $post->ID ) ) {
|
||||
$product->set_id( $post->ID );
|
||||
}
|
||||
|
||||
// Save modified global for later use
|
||||
$tb_wc_post = $post;
|
||||
|
Reference in New Issue
Block a user