List category posts - Version 0.74.1

Version Description

  • Possibly fixed a bug where the code for the Paginator class would show up in some blogs. Apparently some PHP ini accept "<?" as a valid way of starting a php file, others don't.
Download this release

Release Info

Developer fernandobt
Plugin Icon 128x128 List category posts
Version 0.74.1
Comparing to
See all releases

Code changes from version 0.74 to 0.74.1

include/lcp-paginator.php CHANGED
@@ -1,4 +1,4 @@
1
- <?
2
  /**
3
  * Class to build pagination
4
  * @author fernando@picandocodigo.net
@@ -32,7 +32,7 @@ class LcpPaginator {
32
  );
33
  }
34
 
35
- public function get_pagination($params){
36
  if ($this->show_pagination($params['pagination'])){
37
  $lcp_paginator = '';
38
  $pages_count = ceil (
1
+ <?php
2
  /**
3
  * Class to build pagination
4
  * @author fernando@picandocodigo.net
32
  );
33
  }
34
 
35
+ public function get_pagination($params){
36
  if ($this->show_pagination($params['pagination'])){
37
  $lcp_paginator = '';
38
  $pages_count = ceil (
include/lcp-widget-form.php CHANGED
@@ -102,9 +102,9 @@
102
  <p>
103
  <label for="<?php echo $this->get_field_id('offset'); ?>">
104
  <?php _e("Offset", 'list-category-posts')?>: <br/>
105
- <input size="2" id="<?php echo $this->get_field_id('offset'); ?>"
106
- name="<?php echo $this->get_field_name('offset'); ?>" type="text"
107
- value="<?php echo esc_attr($offset); ?>" />
108
  </label>
109
  </p>
110
 
@@ -177,9 +177,9 @@
177
  <select id="<?php echo $this->get_field_id('thumbnail_size'); ?>"
178
  name="<?php echo $this->get_field_name( 'thumbnail_size' ); ?>" type="text">
179
  <?php foreach($image_sizes as $image_size) { ?>
180
- <option value='<?php echo $image_size ?>' <?php
181
- if($thumbnail_size == $image_size) echo 'selected';
182
- ?>><?php echo $image_size ?></option>
183
  <?php } ?>
184
  </select>
185
  </p>
102
  <p>
103
  <label for="<?php echo $this->get_field_id('offset'); ?>">
104
  <?php _e("Offset", 'list-category-posts')?>: <br/>
105
+ <input size="2" id="<?php echo $this->get_field_id('offset'); ?>"
106
+ name="<?php echo $this->get_field_name('offset'); ?>" type="text"
107
+ value="<?php echo esc_attr($offset); ?>" />
108
  </label>
109
  </p>
110
 
177
  <select id="<?php echo $this->get_field_id('thumbnail_size'); ?>"
178
  name="<?php echo $this->get_field_name( 'thumbnail_size' ); ?>" type="text">
179
  <?php foreach($image_sizes as $image_size) { ?>
180
+ <option value='<?php echo $image_size ?>' <?php
181
+ if($thumbnail_size == $image_size) echo 'selected';
182
+ ?>><?php echo $image_size ?></option>
183
  <?php } ?>
184
  </select>
185
  </p>
include/lcp-widget.php CHANGED
@@ -86,6 +86,7 @@ class ListCategoryPostsWidget extends WP_Widget{
86
  $title = $lcp_category[0]->name;
87
  }
88
  echo $before_title . $title . $after_title;
 
89
  $catlist_displayer = new CatListDisplayer($atts);
90
  echo $catlist_displayer->display();
91
  echo $after_widget;
86
  $title = $lcp_category[0]->name;
87
  }
88
  echo $before_title . $title . $after_title;
89
+
90
  $catlist_displayer = new CatListDisplayer($atts);
91
  echo $catlist_displayer->display();
92
  echo $after_widget;
list-category-posts.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
5
  Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
- Version: 0.74
7
  Author: Fernando Briano
8
  Author URI: http://fernandobriano.com
9
 
3
  Plugin Name: List category posts
4
  Plugin URI: https://github.com/picandocodigo/List-Category-Posts
5
  Description: List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].
6
+ Version: 0.74.1
7
  Author: Fernando Briano
8
  Author URI: http://fernandobriano.com
9
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: list, categories, posts, cms
5
  Requires at least: 3.3
6
  Tested up to: 4.9
7
  Requires PHP: 5.2.4
8
- Stable tag: 0.74
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -440,6 +440,10 @@ Template system has changed. Custom templates should be stored in WordPress them
440
 
441
  == Changelog ==
442
 
 
 
 
 
443
  = 0.74 =
444
  * Adds "next" and "previous" classes to the previous and next buttons in pagination menu. The classes are `lcp_prevlink` and `lcp_nextlink`. Thanks @zymeth25.
445
  * Adds pagination to Widget.
5
  Requires at least: 3.3
6
  Tested up to: 4.9
7
  Requires PHP: 5.2.4
8
+ Stable tag: 0.74.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
440
 
441
  == Changelog ==
442
 
443
+ = 0.74.1 =
444
+
445
+ * Possibly fixed a bug where the code for the Paginator class would show up in some blogs. Apparently some PHP ini accept "<?" as a valid way of starting a php file, others don't.
446
+
447
  = 0.74 =
448
  * Adds "next" and "previous" classes to the previous and next buttons in pagination menu. The classes are `lcp_prevlink` and `lcp_nextlink`. Thanks @zymeth25.
449
  * Adds pagination to Widget.