inc/blocks/MenuBlock.php
@@ -47,7 +47,7 @@ if (wp_is_post_revision($postID) || wp_is_post_autosave($postID)) return; $postType = $post->post_type; if ($postType !== 'product' && !in_array($postType, Registrar::getFoodMenuTypes())) { if ($postType !== 'product' || !in_array($postType, Registrar::getFoodMenuTypes())) { return; } error_log('Flushing food menu block cache'); @@ -146,7 +146,7 @@ protected function getSections():array { if (!$this->sections) { $this->sections = aneb_menu_sections(); $this->sections = jvb_menu_sections(); } return $this->sections;