Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Automatically Paginate Posts
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
Service Desk
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
Automatically Paginate Posts
Commits
1d92f9ca
Commit
1d92f9ca
authored
2 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Test coverage
parent
98d83920
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!5
Add block-editor support
Pipeline
#4964
failed
2 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
automatically-paginate-posts.php
+6
-6
6 additions, 6 deletions
automatically-paginate-posts.php
with
6 additions
and
6 deletions
automatically-paginate-posts.php
+
6
−
6
View file @
1d92f9ca
...
...
@@ -37,12 +37,12 @@ class Automatically_Paginate_Posts {
/**
* WordPress Quicktag that creates pagination.
*/
protected
const
QUICKTAG
=
'<!--nextpage-->'
;
const
QUICKTAG
=
'<!--nextpage-->'
;
/**
* String length of nextpage Quicktag.
*/
protected
const
QUICKTAG_LENGTH
=
15
;
const
QUICKTAG_LENGTH
=
15
;
/**
* Supported post types.
...
...
@@ -546,7 +546,7 @@ 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>
<!--nextpage-->
</code>'
'<code>
'
.
htmlentities
(
static
::
QUICKTAG
,
ENT_QUOTES
)
.
'
</code>'
);
?>
</p>
...
...
@@ -618,7 +618,7 @@ class Automatically_Paginate_Posts {
if
(
preg_match
(
'#
<!--nextpage-->
#i'
,
'#
'
.
static
::
QUICKTAG
.
'
#i'
,
$the_post
->
post_content
)
)
{
...
...
@@ -768,7 +768,7 @@ class Automatically_Paginate_Posts {
$frequency
)
)
{
$content
[
$key
]
.
=
'<!--nextpage-->'
;
$content
[
$key
]
.
=
static
::
QUICKTAG
;
$i
++
;
}
}
...
...
@@ -926,7 +926,7 @@ class Automatically_Paginate_Posts {
if
(
!
$block
)
{
$_block
=
parse_blocks
(
'<!-- wp:nextpage -->
<!--nextpage-->
'
.
static
::
QUICKTAG
.
'
<!-- /wp:nextpage -->'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment