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

Version 0.6.1 - reverts a change in the is_view_all() method that breaks the plugin.

parent d35b2675
Branches
Tags
No related merge requests found
......@@ -4,7 +4,7 @@ Donate link: http://www.thinkoomph.com/plugins-modules/view-all-posts-pages/
Tags: view all, pages, paged, paged post, multipage, single view, single page, wp_link_pages, nextpage, next page, quicktag
Requires at least: 3.2.1
Tested up to: 3.4
Stable tag: 0.6
Stable tag: 0.6.1
Provides a "view all" (single page) option for content paged using WordPress' <!--nextpage--> Quicktag (multipage posts).
== Description ==
......@@ -43,6 +43,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an
== Changelog ==
= 0.6.1 =
* Revert change in is_view_all() method made in version 0.6 as it breaks the method, rendering the plugin inoperable.
= 0.6 =
* Add additional rewrite rules for situations where verbose page rules are required.
* Disable canonical redirect when print template is requested.
......@@ -72,6 +75,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an
== Upgrade Notice ==
= 0.6.1 =
Resolves a problem where requests for view-all templates redirect to the article.
= 0.6 =
Adds better support for sites that use verbose page rules, resolving situations where requests for print template redirect to the post.
......
......@@ -4,7 +4,7 @@ Plugin Name: View All Post's Pages
Plugin URI: http://www.thinkoomph.com/plugins-modules/view-all-posts-pages/
Description: Provides a "view all" (single page) option for posts, pages, and custom post types paged using WordPress' <a href="http://codex.wordpress.org/Write_Post_SubPanel#Quicktags" target="_blank"><code>&lt;!--nextpage--&gt;</code> Quicktag</a> (multipage posts).
Author: Erick Hitter (Oomph, Inc.)
Version: 0.6
Version: 0.6.1
Author URI: http://www.thinkoomph.com/
*/
......@@ -92,12 +92,12 @@ class view_all_posts_pages {
/**
* Determine if full post view is being requested.
*
* @uses get_query_var
* @global $wp_query
* @return bool
*/
public function is_view_all() {
global $wp_query;
return (bool) get_query_var( $this->query_var );
return is_array( $wp_query->query ) && array_key_exists( $this->query_var, $wp_query->query );
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment