From 5cf4a401a2e0f8fe89fd6981cc9c0c4f47e0b575 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Tue, 28 Jun 2022 20:49:55 -0700
Subject: [PATCH] PHPCS

---
 automatically-paginate-posts.php            | 4 +++-
 tests/test-automatically-paginate-posts.php | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/automatically-paginate-posts.php b/automatically-paginate-posts.php
index 074becd..c65196c 100644
--- a/automatically-paginate-posts.php
+++ b/automatically-paginate-posts.php
@@ -546,7 +546,9 @@ class Automatically_Paginate_Posts {
 						'Note that if the %1$s Quicktag is used to manually page this post, automatic paging won\'t be applied, regardless of the setting above.',
 						'autopaging'
 					),
-					'<code>' . htmlentities(static::QUICKTAG, ENT_QUOTES ) . '</code>'
+					// No need to escape a class constant.
+					// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+					'<code>' . htmlentities( static::QUICKTAG, ENT_QUOTES ) . '</code>'
 				);
 			?>
 		</p>
diff --git a/tests/test-automatically-paginate-posts.php b/tests/test-automatically-paginate-posts.php
index 9ef61b4..59aceff 100755
--- a/tests/test-automatically-paginate-posts.php
+++ b/tests/test-automatically-paginate-posts.php
@@ -377,8 +377,9 @@ class Test_Automatically_Paginate_Posts extends WP_UnitTestCase {
 
 /**
  * Test class for admin-related restrictions.
+ *
+ * phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound
  */
-// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound
 class Test_Autopaging_Admin {
 	/**
 	 * Mock being in wp-admin.
-- 
GitLab