Ultimate Posts Widget - Version 2.0.9

Version Description

  • Replaced deprecated code
Download this release

Release Info

Developer cl272
Plugin Icon wp plugin Ultimate Posts Widget
Version 2.0.9
Comparing to
See all releases

Code changes from version 2.0.8 to 2.0.9

Files changed (2) hide show
  1. readme.txt +6 -3
  2. ultimate-posts-widget.php +7 -3
readme.txt CHANGED
@@ -6,7 +6,7 @@ License URI: http://opensource.org/licenses/MIT
6
  Tags: widget, recent posts, custom post types, sticky posts, featured image, post thumbnail, excerpts, category, custom fields, list pages, widget query, microformats, customizable widget, categories widget, tags widget, excerpt, widget templates, post author, post date, custom query, ultimate posts, comments, orderby, comment count
7
  Requires at least: 3.5
8
  Tested up to: 5.3
9
- Stable tag: 2.0.8
10
 
11
  The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
12
 
@@ -119,6 +119,9 @@ This plugin uses the [timthumb library](http://www.binarymoon.co.uk/projects/tim
119
 
120
  == Changelog ==
121
 
 
 
 
122
  = 2.0.8 =
123
  * Plugin revival
124
  * Feedback system integrated
@@ -258,9 +261,9 @@ This plugin uses the [timthumb library](http://www.binarymoon.co.uk/projects/tim
258
 
259
  == Upgrade Notice ==
260
 
261
- = 2.0.0 =
262
 
263
- This is a major update and includes some breaking changes. New templates have been introduced, a few fields have changed, and thumbnails have been modified. See the changelog for details.
264
 
265
  == Installation ==
266
 
6
  Tags: widget, recent posts, custom post types, sticky posts, featured image, post thumbnail, excerpts, category, custom fields, list pages, widget query, microformats, customizable widget, categories widget, tags widget, excerpt, widget templates, post author, post date, custom query, ultimate posts, comments, orderby, comment count
7
  Requires at least: 3.5
8
  Tested up to: 5.3
9
+ Stable tag: 2.0.9
10
 
11
  The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
12
 
119
 
120
  == Changelog ==
121
 
122
+ = 2.0.9 =
123
+ * Replaced deprecated code
124
+
125
  = 2.0.8 =
126
  * Plugin revival
127
  * Feedback system integrated
261
 
262
  == Upgrade Notice ==
263
 
264
+ = 2.0.9 =
265
 
266
+ Please upgrade
267
 
268
  == Installation ==
269
 
ultimate-posts-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ultimate Posts Widget
4
  Plugin URI: http://wordpress.org/plugins/ultimate-posts-widget/
5
  Description: The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
6
- Version: 2.0.8
7
  Author: Clever Widgets
8
  Author URI: https://themecheck.info
9
  Text Domain: upw
@@ -151,11 +151,15 @@ if ( !class_exists( 'WP_Widget_Ultimate_Posts' ) ) {
151
  }
152
 
153
  // Excerpt more filter
154
- $new_excerpt_more = create_function('$more', 'return "...";');
 
 
155
  add_filter('excerpt_more', $new_excerpt_more);
156
 
157
  // Excerpt length filter
158
- $new_excerpt_length = create_function('$length', "return " . $excerpt_length . ";");
 
 
159
  if ( $instance['excerpt_length'] > 0 ) add_filter('excerpt_length', $new_excerpt_length);
160
 
161
  if( $class ) {
3
  Plugin Name: Ultimate Posts Widget
4
  Plugin URI: http://wordpress.org/plugins/ultimate-posts-widget/
5
  Description: The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
6
+ Version: 2.0.9
7
  Author: Clever Widgets
8
  Author URI: https://themecheck.info
9
  Text Domain: upw
151
  }
152
 
153
  // Excerpt more filter
154
+ $new_excerpt_more = function($more){
155
+ return "...";
156
+ };
157
  add_filter('excerpt_more', $new_excerpt_more);
158
 
159
  // Excerpt length filter
160
+ $new_excerpt_length = function($length) use ($excerpt_length){
161
+ return $excerpt_length;
162
+ };
163
  if ( $instance['excerpt_length'] > 0 ) add_filter('excerpt_length', $new_excerpt_length);
164
 
165
  if( $class ) {