diff --git a/readme.txt b/readme.txt index 29ef542931bf1f21ec430ebc158cec46a385415b..dc54265b9ff8a2a48cb8bf85ba9a8abb1181d36c 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 5779973bbbf4f06911b34600280a58c59ced8919..a89434df3cb9823d8618c44345cd65da75994dc8 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 ); } /**