Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
View All Posts Pages
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
View All Posts Pages
Merge requests
!21
Fix PHPCS errors
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix PHPCS errors
fix/phpcs
into
master
Overview
0
Commits
3
Pipelines
3
Changes
1
Merged
Erick Hitter
requested to merge
fix/phpcs
into
master
3 months ago
Overview
0
Commits
3
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Viewing commit
d35af9cb
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
d35af9cb
Fix PHPCS error
· d35af9cb
Erick Hitter
authored
3 months ago
view-all-posts-pages.php
+
4
−
1
Options
@@ -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:
ignor
e WordPress.WP.GlobalVariablesOverride.Prohibited
// phpcs:
disabl
e WordPress.WP.GlobalVariablesOverride.Prohibited
$GLOBALS
[
'more'
]
=
false
;
// phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited
}
// Process link text, respecting pagelink parameter.
Loading