| @@ -9,8 +9,10 @@ | ||
| 9 | 9 | if (! defined('ABSPATH')) { |
| 10 | 10 | exit; |
| 11 | 11 | } // Exit if accessed directly |
| 12 | 12 | |
| 13 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals -- usk_ / BDTUSK_ / ultimate-store-kit- are this plugin's established public prefixes. Ultimate Store Kit Pro calls into these names, as does third-party integration code, so renaming them is a breaking change. Plugin Check only recognises prefixes derived verbatim from the slug and so reports them as unprefixed. | |
| 14 | + | |
| 13 | 15 | abstract class Builder_Widget_Base extends Widget_Base { |
| 14 | 16 | |
| 15 | 17 | public $__temp_query = null; |
| 16 | 18 | public $__product_data = false; |
| @@ -59,10 +61,10 @@ | ||
| 59 | 61 | } |
| 60 | 62 | |
| 61 | 63 | global $post; |
| 62 | 64 | |
| 63 | - $templateId = get_transient('ultimate_store_template_id_' . get_current_user_id()); | |
| 64 | - $posts = get_transient('ultimate_store_template_sample_post_' . get_current_user_id()); | |
| 65 | + $templateId = get_transient('ultimate_store_kit_template_id_' . get_current_user_id()); | |
| 66 | + $posts = get_transient('ultimate_store_kit_template_sample_post_' . get_current_user_id()); | |
| 65 | 67 | |
| 66 | 68 | if ($posts instanceof \WP_Query && $posts->have_posts() && $templateId == $post->ID) { |
| 67 | 69 | foreach ($posts->posts as $post) { |
| 68 | 70 | $GLOBALS['post'] = $post; |