Skip to content
Snippets Groups Projects
Commit f06657b8 authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'fix/phpcs' into 'master'

Fix PHPCS errors

See merge request !21
parents d2c01700 928e0b82
No related branches found
No related tags found
1 merge request!21Fix PHPCS errors
Pipeline #7991 passed
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
* *
* @package View_All_Posts_Pages * @package View_All_Posts_Pages
* *
* phpcs:disable Universal.Files.SeparateFunctionsFromOO.Mixed
*
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or * 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 ...@@ -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. // 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() ) { if ( $this->is_view_all() ) {
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited // phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
$GLOBALS['more'] = false; $GLOBALS['more'] = false;
// phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited
} }
// Process link text, respecting pagelink parameter. // Process link text, respecting pagelink parameter.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment