| @@ -12,8 +12,9 @@ | ||
| 12 | 12 | * @package PropertyHive/Classes/ |
| 13 | 13 | * @category Class |
| 14 | 14 | * @author PropertyHive |
| 15 | 15 | */ |
| 16 | +// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- Preserve the existing public PH_Rank_Math class name for plugin and extension compatibility. | |
| 16 | 17 | class PH_Rank_Math { |
| 17 | 18 | |
| 18 | 19 | /** @var PH_Rank_Math The single instance of the class */ |
| 19 | 20 | protected static $_instance = null; |
| @@ -81,8 +82,9 @@ | ||
| 81 | 82 | $properties_to_exclude = get_posts(array( |
| 82 | 83 | 'fields' => 'ids', |
| 83 | 84 | 'posts_per_page' => -1, |
| 84 | 85 | 'post_type' => 'property', |
| 86 | + // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_query -- Sitemap exclusions require all property IDs explicitly marked off-market in the existing metadata schema; preserve the complete exclusion list and status semantics. | |
| 85 | 87 | 'meta_query' => array( |
| 86 | 88 | array( |
| 87 | 89 | 'key' => '_on_market', |
| 88 | 90 | 'value' => '', |