From 3c90faea3ad7fb7034a279e0ff7df93263ac109f Mon Sep 17 00:00:00 2001 From: Erick Hitter <ehitter@gmail.com> Date: Mon, 4 Jun 2012 10:56:32 -0400 Subject: [PATCH] Version 0.6.1 - reverts a change in the is_view_all() method that breaks the plugin. --- readme.txt | 8 +++++++- view-all-posts-pages.php | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index 29ef542..dc54265 100644 --- a/readme.txt +++ b/readme.txt @@ -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. diff --git a/view-all-posts-pages.php b/view-all-posts-pages.php index 5779973..a89434d 100644 --- a/view-all-posts-pages.php +++ b/view-all-posts-pages.php @@ -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><!--nextpage--></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 ); } /** -- GitLab