← All changes
|
includes/Admin/Product/Services/ProductQueryService.php
+2
-0
1.9.1
→
1.10.20
View file →
| @@ -50,8 +50,9 @@ | ||
| 50 | 50 | ORDER BY p.ID ASC |
| 51 | 51 | LIMIT %d |
| 52 | 52 | ", $productIdMetaKey, $lastId, $postsPerPage); |
| 53 | 53 | |
| 54 | + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter -- Core WP table identifiers from $wpdb properties and a whitelisted static stock-condition fragment, not user input; values are prepared. | |
| 54 | 55 | $ids = $wpdb->get_col($query); |
| 55 | 56 | |
| 56 | 57 | return array_map('intval', $ids); |
| 57 | 58 | } |
| @@ -79,8 +80,9 @@ | ||
| 79 | 80 | ORDER BY p.ID ASC |
| 80 | 81 | LIMIT %d |
| 81 | 82 | ", $productIdMetaKey, $lastId, $postsPerPage); |
| 82 | 83 | |
| 84 | + // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter -- Core WP table identifiers from $wpdb properties, not user input; values are prepared. | |
| 83 | 85 | $ids = $wpdb->get_col($query); |
| 84 | 86 | |
| 85 | 87 | return array_map('intval', $ids); |
| 86 | 88 | } |