Version Description
- Bug fixed: Missing section in some one-page themes when put multiple View shortcodes to sections
- Update: Revert filter "view_type_dir"
- Tested up to: 4.3.1
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.6.7 |
Comparing to | |
See all releases |
Code changes from version 1.6.6 to 1.6.7
- README.txt +7 -2
- content-views.php +2 -2
- includes/functions.php +9 -2
- includes/html.php +6 -1
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: pt-guy
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JGUF974QBRKQE
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, grid, column, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 4.3
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -165,6 +165,11 @@ function my_move_bootstrap( $args ) {
|
|
165 |
|
166 |
== Changelog ==
|
167 |
|
|
|
|
|
|
|
|
|
|
|
168 |
= 1.6.6 =
|
169 |
* Bug fixed: Layout of Scrollable List was broken if active theme uses classes of Bootstrap carousel
|
170 |
* Bug fixed: Page is not activated when click on pagination button in Preview
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=JGUF974QBRKQE
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, grid, column, layout, author, blog, categories, category, comment, content, custom, editor, filter, Formatting, image, list, meta, plugin, responsive, shortcode, excerpt, title, tag, term, Taxonomy, thumbnail, pagination, date, scrollable, slider, collapsible
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.3.1
|
7 |
+
Stable tag: 1.6.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
165 |
|
166 |
== Changelog ==
|
167 |
|
168 |
+
= 1.6.7 =
|
169 |
+
* Bug fixed: Missing section in some one-page themes when put multiple View shortcodes to sections
|
170 |
+
* Update: Revert filter "view_type_dir"
|
171 |
+
* Tested up to: 4.3.1
|
172 |
+
|
173 |
= 1.6.6 =
|
174 |
* Bug fixed: Layout of Scrollable List was broken if active theme uses classes of Bootstrap carousel
|
175 |
* Bug fixed: Page is not activated when click on pagination button in Preview
|
content-views.php
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
* Plugin Name: Content Views
|
12 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
13 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
14 |
-
* Version: 1.6.
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
* Text Domain: content-views
|
@@ -27,7 +27,7 @@ if ( !defined( 'WPINC' ) ) {
|
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
-
define( 'PT_CV_VERSION', '1.6.
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|
11 |
* Plugin Name: Content Views
|
12 |
* Plugin URI: http://wordpress.org/plugins/content-views-query-and-display-post-page/
|
13 |
* Description: Query and display <strong>posts, pages</strong> in awesome layouts (<strong>grid, scrollable list, collapsible list</strong>) easier than ever, without coding!
|
14 |
+
* Version: 1.6.7
|
15 |
* Author: PT Guy
|
16 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
17 |
* Text Domain: content-views
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
+
define( 'PT_CV_VERSION', '1.6.7' );
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
$pt_cv_path = plugin_dir_path( __FILE__ );
|
33 |
include_once( $pt_cv_path . 'includes/defines.php' );
|
includes/functions.php
CHANGED
@@ -494,7 +494,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
494 |
endif;
|
495 |
|
496 |
// Restore $wp_query and original Post Data
|
497 |
-
|
498 |
|
499 |
return $post_id;
|
500 |
}
|
@@ -797,7 +797,7 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
797 |
}
|
798 |
|
799 |
// Restore $wp_query and original Post Data
|
800 |
-
|
801 |
|
802 |
return array( 'content_items' => apply_filters( PT_CV_PREFIX_ . 'content_items', $content_items, $view_type ), 'pt_query' => $pt_query );
|
803 |
}
|
@@ -1521,6 +1521,13 @@ if ( !class_exists( 'PT_CV_Functions' ) ) {
|
|
1521 |
return defined( 'PT_CV_DEBUG' ) ? ( PT_CV_DEBUG ? $log : $message ) : $message;
|
1522 |
}
|
1523 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1524 |
}
|
1525 |
|
1526 |
}
|
494 |
endif;
|
495 |
|
496 |
// Restore $wp_query and original Post Data
|
497 |
+
self::reset_query();
|
498 |
|
499 |
return $post_id;
|
500 |
}
|
797 |
}
|
798 |
|
799 |
// Restore $wp_query and original Post Data
|
800 |
+
self::reset_query();
|
801 |
|
802 |
return array( 'content_items' => apply_filters( PT_CV_PREFIX_ . 'content_items', $content_items, $view_type ), 'pt_query' => $pt_query );
|
803 |
}
|
1521 |
return defined( 'PT_CV_DEBUG' ) ? ( PT_CV_DEBUG ? $log : $message ) : $message;
|
1522 |
}
|
1523 |
|
1524 |
+
// Reset WP query
|
1525 |
+
static function reset_query() {
|
1526 |
+
if ( apply_filters( PT_CV_PREFIX_ . 'reset_query', true ) ) {
|
1527 |
+
wp_reset_query();
|
1528 |
+
}
|
1529 |
+
}
|
1530 |
+
|
1531 |
}
|
1532 |
|
1533 |
}
|
includes/html.php
CHANGED
@@ -177,7 +177,12 @@ if ( !class_exists( 'PT_CV_Html' ) ) {
|
|
177 |
}
|
178 |
|
179 |
// Get view type directory
|
180 |
-
$view_type_dir
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
// Get asset directory
|
183 |
$view_type_assets_dir = apply_filters( PT_CV_PREFIX_ . 'view_type_asset', $view_type_dir, $view_type );
|
177 |
}
|
178 |
|
179 |
// Get view type directory
|
180 |
+
$view_type_dir = apply_filters( PT_CV_PREFIX_ . 'view_type_dir', PT_CV_VIEW_TYPE_OUTPUT, $view_type ) . $view_type;
|
181 |
+
// Compatible code for other Pro versions
|
182 |
+
$view_type_dir = apply_filters( PT_CV_PREFIX_ . 'view_type_dir_special', $view_type_dir, $view_type );
|
183 |
+
if ( strpos( $view_type_dir, $view_type . $view_type ) !== false ) {
|
184 |
+
$view_type_dir = str_replace( $view_type . $view_type, $view_type, $view_type_dir );
|
185 |
+
}
|
186 |
|
187 |
// Get asset directory
|
188 |
$view_type_assets_dir = apply_filters( PT_CV_PREFIX_ . 'view_type_asset', $view_type_dir, $view_type );
|