diff --git a/view-all-posts-pages.php b/view-all-posts-pages.php
index d000a52391e019bd7d76427d8512dd2e7299475d..779a9fc6398bff25f420ba3e56dfba5d84a2811b 100755
--- a/view-all-posts-pages.php
+++ b/view-all-posts-pages.php
@@ -339,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.