Skip to content

Commit

Permalink
Ignore PHPCS warnings for non-prefixed hooknames because Buddy isn't …
Browse files Browse the repository at this point in the history
…registering the changes to the project .phpcs.xml file
  • Loading branch information
attackant committed Mar 12, 2024
1 parent e3469fd commit 4ad43d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/features/class-full-page-cache-404.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand All @@ -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
}

/**
Expand Down

0 comments on commit 4ad43d4

Please sign in to comment.