PluginProbe
WCPOS – Point of Sale (POS) plugin for WooCommerce / 1.10.21
WCPOS – Point of Sale (POS) plugin for WooCommerce v1.10.21
1.10.22 1.10.21 1.10.20 1.10.19 1.10.18 1.10.17 1.10.16 1.10.15 1.10.13 1.10.14 1.10.12 1.10.11 1.10.10 1.10.9 1.10.8 untagged-3d9b7ccddc54df87c672 1.10.7 1.10.6 1.10.5 1.10.3 1.10.4 1.10.2 1.10.1 1.10.0 1.9.17 All 166 releases
← All changes | includes/Sync/Digest_Index.php +3 -2 1.10.18 → 1.10.21 View file →
@@ -838,11 +838,12 @@
838 838 }
839 839
840 840 /**
841 841 * The readable-catalog predicate over a post alias and its parent alias — a published product,
842 - * or a variation whose parent product is published. One home for the rule.
842 + * or a variation whose parent product is published. One home for the rule. The wcpos/v2 products
843 + * ID fast path ({@see \WCPOS\WooCommercePOS\API\V2\Proxy\Products_Proxy_Behavior::fast_response()}) calls it too.
843 844 */
844 - private function published_product_predicate_sql( string $post_alias, string $parent_alias ): string {
845 + public static function published_product_predicate_sql( string $post_alias, string $parent_alias ): string {
845 846 return "(({$post_alias}.post_type = 'product' AND {$post_alias}.post_status = 'publish')"
846 847 . " OR ({$post_alias}.post_type = 'product_variation' AND {$parent_alias}.post_type = 'product'"
847 848 . " AND {$parent_alias}.post_status = 'publish'))";
848 849 }