Newpost Catch - Version 1.3.3

Version Description

  • Compatibility check with WP 4.7.2.
  • Bugfix(thumbnail indication when shortcode was used).
Download this release

Release Info

Developer s56bouya
Plugin Icon wp plugin Newpost Catch
Version 1.3.3
Comparing to
See all releases

Code changes from version 1.3.1 to 1.3.3

Files changed (4) hide show
  1. class.php +4 -5
  2. newpost-catch.php +3 -4
  3. readme.txt +9 -2
  4. uninstall.php +1 -2
class.php CHANGED
@@ -305,12 +305,12 @@ if ( !class_exists( 'NewpostCatch_SC' ) ) {
305
  $get_date = ( $date == true ) ? '<span class="date">' . esc_html( get_the_time( get_option('date_format') ) ) . '</span>' : '';
306
 
307
  $thumb_url = '';
308
- if( has_post_thumbnail() ) {
309
- $thumb_id = get_post_thumbnail_id();
310
  $thumb_url = wp_get_attachment_image_src($thumb_id);
311
  $thumb_url = $thumb_url[0];
312
  } else {
313
- $thumb_url = $npc_construct->default_thumbnail;
314
  }
315
 
316
  $html .= '<li><a href="' . esc_url( get_permalink() ) . '" title="' . get_the_title() . '">';
@@ -325,5 +325,4 @@ if ( !class_exists( 'NewpostCatch_SC' ) ) {
325
  return $html;
326
  }
327
  }
328
- }
329
- ?>
305
  $get_date = ( $date == true ) ? '<span class="date">' . esc_html( get_the_time( get_option('date_format') ) ) . '</span>' : '';
306
 
307
  $thumb_url = '';
308
+ if( has_post_thumbnail( get_the_ID() ) ) {
309
+ $thumb_id = get_post_thumbnail_id( get_the_ID() );
310
  $thumb_url = wp_get_attachment_image_src($thumb_id);
311
  $thumb_url = $thumb_url[0];
312
  } else {
313
+ $thumb_url = $npc_construct->no_thumb_image();
314
  }
315
 
316
  $html .= '<li><a href="' . esc_url( get_permalink() ) . '" title="' . get_the_title() . '">';
325
  return $html;
326
  }
327
  }
328
+ }
 
newpost-catch.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Newpost Catch
4
  Plugin URI: http://www.imamura.biz/blog/newpost-catch/
5
  Description: Thumbnails in new articles setting widget.
6
- Version: 1.3.1
7
  Author: Tetsuya Imamura
8
  Text Domain: newpost-catch
9
  Author URI: http://www.imamura.biz/blog/
@@ -19,7 +19,7 @@ add_action( 'widgets_init', function(){ register_widget( 'NewpostCatch' ); });
19
  //Instance
20
  new NewpostCatch_SC();
21
 
22
- /* Copyright 2012-2015 Tetsuya Imamura (@s56bouya)
23
 
24
  This program is free software; you can redistribute it and/or modify
25
  it under the terms of the GNU General Public License, version 2, as
@@ -33,5 +33,4 @@ new NewpostCatch_SC();
33
  You should have received a copy of the GNU General Public License
34
  along with this program; if not, write to the Free Software
35
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
36
- */
37
- ?>
3
  Plugin Name: Newpost Catch
4
  Plugin URI: http://www.imamura.biz/blog/newpost-catch/
5
  Description: Thumbnails in new articles setting widget.
6
+ Version: 1.3.3
7
  Author: Tetsuya Imamura
8
  Text Domain: newpost-catch
9
  Author URI: http://www.imamura.biz/blog/
19
  //Instance
20
  new NewpostCatch_SC();
21
 
22
+ /* Copyright Tetsuya Imamura (@s56bouya)
23
 
24
  This program is free software; you can redistribute it and/or modify
25
  it under the terms of the GNU General Public License, version 2, as
33
  You should have received a copy of the GNU General Public License
34
  along with this program; if not, write to the Free Software
35
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
36
+ */
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: s56bouya
3
  Donate link: http://www.imamura.biz/blog/newpost-catch
4
  Tags: widget, plugin, posts, sidebar, image, images, thumb, thumbnail
5
  Requires at least: 3.3.1
6
- Tested up to: 4.5
7
- Stable tag: 1.3.1
8
 
9
  Thumbnails in new articles setting widget.
10
 
@@ -93,6 +93,13 @@ When the post other than, post_type of the current page is the value of the prio
93
 
94
  == Changelog ==
95
 
 
 
 
 
 
 
 
96
  = 1.3.1 =
97
  * Required PHP5.3+(changed widgets_init hook).
98
  * Abolished option page.
3
  Donate link: http://www.imamura.biz/blog/newpost-catch
4
  Tags: widget, plugin, posts, sidebar, image, images, thumb, thumbnail
5
  Requires at least: 3.3.1
6
+ Tested up to: 4.7.2
7
+ Stable tag: 1.3.3
8
 
9
  Thumbnails in new articles setting widget.
10
 
93
 
94
  == Changelog ==
95
 
96
+ = 1.3.3 =
97
+ * Compatibility check with WP 4.7.2.
98
+ * Bugfix(thumbnail indication when shortcode was used).
99
+
100
+ = 1.3.2 =
101
+ * Compatibility check with WP 4.6.1.
102
+
103
  = 1.3.1 =
104
  * Required PHP5.3+(changed widgets_init hook).
105
  * Abolished option page.
uninstall.php CHANGED
@@ -6,5 +6,4 @@ Author URI: http://www.imamura.biz/blog/newpost-catch
6
  */
7
  if ( !defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') ) { exit(); }
8
  delete_option('widget_newpostcatch');
9
- delete_option('npc_search_posts');
10
- ?>
6
  */
7
  if ( !defined('ABSPATH') && !defined('WP_UNINSTALL_PLUGIN') ) { exit(); }
8
  delete_option('widget_newpostcatch');
9
+ delete_option('npc_search_posts');