{"id":19003498,"date":"2026-08-26T11:47:24","date_gmt":"2026-08-26T11:47:24","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/missing-logic-check-in-template-rendering\/"},"modified":"2026-08-26T11:47:24","modified_gmt":"2026-08-26T11:47:24","slug":"missing-logic-check-in-template-rendering","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/missing-logic-check-in-template-rendering\/","title":{"rendered":"Missing logic check in template rendering"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">wc_get_template() in frontend.php treats a matching order status as sufficient and never requires the main enable option.  And this causes the saved layout to be rendered on order-received page, even though it&#8217;s been disabled. Also lacking the same check for page_template_hierarchy() function in frontend.php<\/p>\n","protected":false},"template":"","class_list":["post-19003498","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19003498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19003498\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19003498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}