Skip to content
Snippets Groups Projects

Fix test failure

Closed Erick Hitter requested to merge fix/phpcs into master
1 file
+ 7
4
Compare changes
  • Side-by-side
  • Inline
+ 7
4
@@ -270,10 +270,12 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa
@@ -270,10 +270,12 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa
$post->post_content = str_replace( "<!--nextpage-->\n", "\n", $post->post_content );
$post->post_content = str_replace( "<!--nextpage-->\n", "\n", $post->post_content );
$post->post_content = str_replace( '<!--nextpage-->', ' ', $post->post_content );
$post->post_content = str_replace( '<!--nextpage-->', ' ', $post->post_content );
$pages = array( $post->post_content ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
// phpcs:disable WordPress.WP.GlobalVariablesOverride.Prohibited
 
$pages = array( $post->post_content );
$more = 1; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
$more = 1;
$multipage = 0; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
$multipage = 0;
 
// phpcs:enable WordPress.WP.GlobalVariablesOverride.Prohibited
}
}
}
}
@@ -320,7 +322,8 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa
@@ -320,7 +322,8 @@ 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() ) {
$GLOBALS['more'] = false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
 
$GLOBALS['more'] = false;
}
}
// Process link text, respecting pagelink parameter.
// Process link text, respecting pagelink parameter.
Loading