Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
View All Posts Pages
Commits
cce4e8cf
Commit
cce4e8cf
authored
Feb 11, 2013
by
Erick Hitter
Browse files
Merge pull request
#2
from mjangda/patch-1
Set $multipage to 0 when viewing all
parents
5204f154
556e8d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
view-all-posts-pages.php
View file @
cce4e8cf
...
...
@@ -179,7 +179,7 @@ class view_all_posts_pages {
*/
public
function
action_the_post
(
$post
)
{
if
(
$this
->
is_view_all
()
)
{
global
$pages
,
$more
;
global
$pages
,
$more
,
$multipage
;
$post
->
post_content
=
str_replace
(
"
\n
<!--nextpage-->
\n
"
,
"
\n\n
"
,
$post
->
post_content
);
$post
->
post_content
=
str_replace
(
"
\n
<!--nextpage-->"
,
"
\n
"
,
$post
->
post_content
);
...
...
@@ -189,6 +189,7 @@ class view_all_posts_pages {
$pages
=
array
(
$post
->
post_content
);
$more
=
1
;
$multipage
=
0
;
}
}
...
...
@@ -669,4 +670,4 @@ if ( ! function_exists( 'is_view_all' ) ) {
return
$vapp
->
is_view_all
();
}
}
?>
\ No newline at end of file
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment