Version Description
- Fix pagination bug (return 0)
Download this release
Release Info
Developer | PT Guy |
Plugin | Content Views – Post Grid & List for WordPress |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- README.txt +7 -1
- content-views.php +2 -2
- includes/functions.php +1 -1
- includes/html.php +1 -1
- public/content-views.php +1 -0
README.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, shortcode, thumbnail, title, content, excerpt, meta, date, author, term, taxonomy, pagination, grid, scrollable, collapsible, list, slide, layout, ui
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -145,6 +145,9 @@ You can create Unlimited Views, in Unlimited websites
|
|
145 |
|
146 |
== Changelog ==
|
147 |
|
|
|
|
|
|
|
148 |
= 1.1.4 =
|
149 |
* Fix pagination bug when don't load Bootstrap in frontend
|
150 |
|
@@ -183,6 +186,9 @@ You can create Unlimited Views, in Unlimited websites
|
|
183 |
|
184 |
== Upgrade Notice ==
|
185 |
|
|
|
|
|
|
|
186 |
= 1.1.4 =
|
187 |
Fix pagination bug when don't load Bootstrap in frontend
|
188 |
|
4 |
Tags: post, posts, page, pages, query, queries, search, display, show, shortcode, thumbnail, title, content, excerpt, meta, date, author, term, taxonomy, pagination, grid, scrollable, collapsible, list, slide, layout, ui
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 3.9.1
|
7 |
+
Stable tag: 1.1.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
145 |
|
146 |
== Changelog ==
|
147 |
|
148 |
+
= 1.1.5 =
|
149 |
+
* Fix pagination bug (return 0)
|
150 |
+
|
151 |
= 1.1.4 =
|
152 |
* Fix pagination bug when don't load Bootstrap in frontend
|
153 |
|
186 |
|
187 |
== Upgrade Notice ==
|
188 |
|
189 |
+
= 1.1.5 =
|
190 |
+
Fix pagination bug (return 0)
|
191 |
+
|
192 |
= 1.1.4 =
|
193 |
Fix pagination bug when don't load Bootstrap in frontend
|
194 |
|
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: 1.1.
|
14 |
* Author: Palace Of Themes
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views
|
@@ -27,7 +27,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
-
define( 'PT_CV_VERSION', '1.1.
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
include_once( plugin_dir_path( __FILE__ ) . 'includes/defines.php' );
|
33 |
|
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: 1.1.5
|
14 |
* Author: Palace Of Themes
|
15 |
* Author URI: http://profiles.wordpress.org/pt-guy
|
16 |
* Text Domain: content-views
|
27 |
/*
|
28 |
* Define Constant
|
29 |
*/
|
30 |
+
define( 'PT_CV_VERSION', '1.1.5' );
|
31 |
define( 'PT_CV_FILE', __FILE__ );
|
32 |
include_once( plugin_dir_path( __FILE__ ) . 'includes/defines.php' );
|
33 |
|
includes/functions.php
CHANGED
@@ -900,7 +900,7 @@ if ( ! class_exists( 'PT_CV_Functions' ) ) {
|
|
900 |
if ( strpos( $title,'[ID:' ) === false ) {
|
901 |
PT_CV_Functions::post_insert( array( 'ID' => $post_id, 'title' => sprintf( '%s [ID: %s]', $title, $view_id ) ) );
|
902 |
}
|
903 |
-
|
904 |
/**
|
905 |
* redirect to edit page
|
906 |
*/
|
900 |
if ( strpos( $title,'[ID:' ) === false ) {
|
901 |
PT_CV_Functions::post_insert( array( 'ID' => $post_id, 'title' => sprintf( '%s [ID: %s]', $title, $view_id ) ) );
|
902 |
}
|
903 |
+
|
904 |
/**
|
905 |
* redirect to edit page
|
906 |
*/
|
includes/html.php
CHANGED
@@ -507,7 +507,7 @@ if ( ! class_exists( 'PT_CV_Html' ) ) {
|
|
507 |
// Check if has thumbnail ( has_post_thumbnail doesn't works )
|
508 |
$has_thumbnail = get_the_post_thumbnail( $post_id );
|
509 |
if ( ! empty( $has_thumbnail ) ) {
|
510 |
-
$thumbnail_size = (array) apply_filters( PT_CV_PREFIX_ . 'field_thumbnail_dimension_output', $dimensions, $fargs );
|
511 |
$thumbnail_size = count( $thumbnail_size ) > 1 ? $thumbnail_size : $thumbnail_size[0];
|
512 |
$html = get_the_post_thumbnail( $post_id, $thumbnail_size, $gargs );
|
513 |
} else {
|
507 |
// Check if has thumbnail ( has_post_thumbnail doesn't works )
|
508 |
$has_thumbnail = get_the_post_thumbnail( $post_id );
|
509 |
if ( ! empty( $has_thumbnail ) ) {
|
510 |
+
$thumbnail_size = (array) apply_filters( PT_CV_PREFIX_ . 'field_thumbnail_dimension_output', $dimensions, $fargs, $dargs );
|
511 |
$thumbnail_size = count( $thumbnail_size ) > 1 ? $thumbnail_size : $thumbnail_size[0];
|
512 |
$html = get_the_post_thumbnail( $post_id, $thumbnail_size, $gargs );
|
513 |
} else {
|
public/content-views.php
CHANGED
@@ -60,6 +60,7 @@ class PT_Content_Views {
|
|
60 |
// Ajax action
|
61 |
$action = 'pagination_request';
|
62 |
add_action( 'wp_ajax_' . $action, array( 'PT_CV_Functions', 'ajax_callback_' . $action ) );
|
|
|
63 |
|
64 |
// Custom hooks for both preview & frontend
|
65 |
PT_CV_Hooks::init();
|
60 |
// Ajax action
|
61 |
$action = 'pagination_request';
|
62 |
add_action( 'wp_ajax_' . $action, array( 'PT_CV_Functions', 'ajax_callback_' . $action ) );
|
63 |
+
add_action( 'wp_ajax_nopriv_' . $action, array( 'PT_CV_Functions', 'ajax_callback_' . $action ) );
|
64 |
|
65 |
// Custom hooks for both preview & frontend
|
66 |
PT_CV_Hooks::init();
|