diff --git a/view-all-posts-pages.php b/view-all-posts-pages.php
index 970274c2234510af8cc001441a6992a60b9bfb87..779a9fc6398bff25f420ba3e56dfba5d84a2811b 100755
--- a/view-all-posts-pages.php
+++ b/view-all-posts-pages.php
@@ -13,6 +13,8 @@
  *
  * @package         View_All_Posts_Pages
  *
+ * phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
@@ -337,8 +339,9 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa
 
 			// Set global $more to false so that wp_link_pages outputs links for all pages when viewing full post page.
 			if ( $this->is_view_all() ) {
-				// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
+				// phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
 				$GLOBALS['more'] = false;
+				// phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited
 			}
 
 			// Process link text, respecting pagelink parameter.