From 4ad43d4abd097c750524e5c0fb4211402cf01646 Mon Sep 17 00:00:00 2001 From: Damian Taggart <4309872+attackant@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:54:23 -0600 Subject: [PATCH] Ignore PHPCS warnings for non-prefixed hooknames because Buddy isn't registering the changes to the project .phpcs.xml file --- src/features/class-full-page-cache-404.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/class-full-page-cache-404.php b/src/features/class-full-page-cache-404.php index d45faaf..8af28ca 100644 --- a/src/features/class-full-page-cache-404.php +++ b/src/features/class-full-page-cache-404.php @@ -73,7 +73,7 @@ final class Full_Page_Cache_404 implements Feature { * @return int */ public static function get_cache_time(): int { - return apply_filters( 'wp_404_caching_cache_time', self::DEFAULT_CACHE_TIME ); + return apply_filters( 'wp_404_caching_cache_time', self::DEFAULT_CACHE_TIME ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound } /** @@ -82,7 +82,7 @@ public static function get_cache_time(): int { * @return int */ public static function get_stale_cache_time(): int { - return apply_filters( 'wp_404_caching_stale_cache_time', self::DEFAULT_STALE_CACHE_TIME ); + return apply_filters( 'wp_404_caching_stale_cache_time', self::DEFAULT_STALE_CACHE_TIME ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound } /**