|
|
@ -446,7 +446,7 @@ function maybe_truncate_string( $string, $length = 40 ) { |
|
|
|
function get_catalog_page(): ?\WP_Post { |
|
|
|
function get_catalog_page(): ?\WP_Post { |
|
|
|
$catalog_pages = get_pages( [ |
|
|
|
$catalog_pages = get_pages( [ |
|
|
|
'meta_key' => '_wp_page_template', |
|
|
|
'meta_key' => '_wp_page_template', |
|
|
|
'meta_value' => 'page-catalog.php', |
|
|
|
'meta_value' => 'page-catalog.php', //phpcs:ignore HM.Performance.SlowMetaQuery.slow_query_meta_value |
|
|
|
]); |
|
|
|
]); |
|
|
|
return $catalog_pages[0] ?? null; |
|
|
|
return $catalog_pages[0] ?? null; |
|
|
|
} |
|
|
|
} |
|
|
|