Version Description
- 2018/04/05 =
- Fix: Normal pagination of View does not work since version 2.0 on a single post, front page
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 2.0.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.1.1
- README.txt +2 -2
- content-views.php +2 -2
- includes/compatibility.php +11 -8
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.contentviewspro.com/?utm_source=wporg&utm_medium=link&u
|
|
4 |
Tags: post grid, grid plugin, grid, latest post, display post, post, page, category, responsive, list, thumbnail
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.9.5
|
7 |
-
Stable tag: 2.0.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -163,7 +163,7 @@ If you are using "Your latest posts" as home page, you should paste this code `<
|
|
163 |
|
164 |
== Changelog ==
|
165 |
|
166 |
-
= 2.0.1 - 2018/04/05 =
|
167 |
* Fix: Normal pagination of View does not work since version 2.0 on a single post, front page
|
168 |
|
169 |
= 2.0 - 2018/04/03 =
|
4 |
Tags: post grid, grid plugin, grid, latest post, display post, post, page, category, responsive, list, thumbnail
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.9.5
|
7 |
+
Stable tag: 2.0.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
163 |
|
164 |
== Changelog ==
|
165 |
|
166 |
+
= 2.0.1.1 - 2018/04/05 =
|
167 |
* Fix: Normal pagination of View does not work since version 2.0 on a single post, front page
|
168 |
|
169 |
= 2.0 - 2018/04/03 =
|
content-views.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* Plugin Name: Content Views
|
11 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
12 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
13 |
-
* Version: 2.0.1
|
14 |
* Author: CVSOFT LLC
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views-query-and-display-post-page
|
@@ -25,7 +25,7 @@ if ( !defined( 'ABSPATH' ) ) {
|
|
25 |
}
|
26 |
|
27 |
// Define Constant
|
28 |
-
define( 'PT_CV_VERSION', '2.0.1' );
|
29 |
define( 'PT_CV_FILE', __FILE__ );
|
30 |
define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
|
31 |
include_once( PT_CV_PATH . 'includes/defines.php' );
|
10 |
* Plugin Name: Content Views
|
11 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
12 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
13 |
+
* Version: 2.0.1.1
|
14 |
* Author: CVSOFT LLC
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views-query-and-display-post-page
|
25 |
}
|
26 |
|
27 |
// Define Constant
|
28 |
+
define( 'PT_CV_VERSION', '2.0.1.1' );
|
29 |
define( 'PT_CV_FILE', __FILE__ );
|
30 |
define( 'PT_CV_PATH', plugin_dir_path( __FILE__ ) );
|
31 |
include_once( PT_CV_PATH . 'includes/defines.php' );
|
includes/compatibility.php
CHANGED
@@ -322,15 +322,18 @@ function cv_comp_common_redirect_vpage() {
|
|
322 |
$pvar = (is_front_page() || !is_singular()) ? 'paged' : 'page';
|
323 |
|
324 |
// For CVP
|
325 |
-
if ( method_exists( 'CVP_Replace_Layout', 'get_instance' ) ) {
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
|
|
|
|
|
|
|
|
|
|
331 |
|
332 |
-
if ( !is_feed() && !is_admin() && preg_match( '/which_view.*string/', $obj_info ) ) {
|
333 |
-
$pvar = '_page'; /* the friendly parameter won't work, it requires modifying posts_per_page in pre_get_posts */
|
334 |
}
|
335 |
}
|
336 |
|
322 |
$pvar = (is_front_page() || !is_singular()) ? 'paged' : 'page';
|
323 |
|
324 |
// For CVP
|
325 |
+
if ( method_exists( 'CVP_Replace_Layout', 'get_instance' ) && class_exists( 'ReflectionClass' ) ) {
|
326 |
+
try {
|
327 |
+
$rep = CVP_Replace_Layout::get_instance();
|
328 |
+
$reflectionClass = new ReflectionClass( $rep );
|
329 |
+
$reflectionProperty = $reflectionClass->getProperty( 'which_view' );
|
330 |
+
$reflectionProperty->setAccessible( true );
|
331 |
+
$sview = $reflectionProperty->getValue( $rep );
|
332 |
+
if ( !is_feed() && !is_admin() && $sview ) {
|
333 |
+
$pvar = '_page'; /* the friendly parameter won't work, it requires modifying posts_per_page in pre_get_posts */
|
334 |
+
}
|
335 |
+
} catch ( ReflectionException $exc ) {
|
336 |
|
|
|
|
|
337 |
}
|
338 |
}
|
339 |
|