Browse Source

fix: coding standards

pull/351/head
Ricardo Aragon 2 years ago
parent
commit
9fd60d8c24
  1. 2
      inc/helpers/namespace.php

2
inc/helpers/namespace.php

@ -446,7 +446,7 @@ function maybe_truncate_string( $string, $length = 40 ) {
function get_catalog_page(): ?\WP_Post {
$catalog_pages = get_pages( [
'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;
}

Loading…
Cancel
Save