Category Posts Widget - Version 4.1.9

Version Description

  • May 5th 2016 =
  • Fixed undefined constant.
Download this release

Release Info

Developer Kometschuh
Plugin Icon 128x128 Category Posts Widget
Version 4.1.9
Comparing to
See all releases

Code changes from version 4.1.8 to 4.1.9

Files changed (3) hide show
  1. cat-posts.css +1 -1
  2. cat-posts.php +7 -18
  3. readme.txt +6 -4
cat-posts.css CHANGED
@@ -1,6 +1,6 @@
1
  /*
2
  Default CSS Styles for the Category Posts Widget plugin
3
- Version: 4.1.8
4
  */
5
 
6
  /*--------------------------------------------------------------
1
  /*
2
  Default CSS Styles for the Category Posts Widget plugin
3
+ Version: 4.1.9
4
  */
5
 
6
  /*--------------------------------------------------------------
cat-posts.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Category Posts Widget
4
  Plugin URI: http://mkrdip.me/category-posts-widget
5
  Description: Adds a widget that shows the most recent posts from a single category.
6
  Author: Mrinal Kanti Roy
7
- Version: 4.1.8
8
  Author URI: http://mkrdip.me
9
  */
10
 
@@ -220,16 +220,19 @@ function category_posts_widget_load_select2_scripts_footer() {
220
  */
221
  function category_posts_widget_admin_scripts($hook) {
222
 
223
- // select2
224
- if ($hook == 'widgets.php') {
225
  if (version_compare( $GLOBALS['wp_version'], '4.4', '>=' ) || !isset($GLOBALS['wp_customize'])) {
 
 
226
  wp_enqueue_script( 'select2-css', plugins_url( 'js/select2-4.0.1/js/select2.min.js' , __FILE__ ), array( 'jquery' ),'4.0.1' );
227
  wp_enqueue_style( 'select2-js', plugins_url( 'js/select2-4.0.1/css/select2.min.css' , __FILE__ ) );
228
 
229
  add_action('admin_print_scripts','category_posts_widget_load_select2_scripts_footer',100);
230
 
231
  }
232
- wp_register_script( 'category-posts-widget-admin-js', CAT_POST_PRO_PLUGINURL.'/js/admin/category-posts-widget.js',array('jquery'),'0.9',true );
 
 
233
  wp_enqueue_script( 'category-posts-widget-admin-js' );
234
  }
235
  }
@@ -302,20 +305,6 @@ function category_posts_admin_styles() {
302
  <?php
303
  }
304
 
305
- /**
306
- * Add JS to control open and close the widget section
307
- *
308
- */
309
- add_action( 'admin_enqueue_scripts', 'category_posts_admin_scripts', 10,1 );
310
-
311
- function category_posts_admin_scripts($hook) {
312
- // widget script
313
- if ($hook == 'widgets.php') { // enqueue only for widget admin and customizer
314
- wp_register_script( 'category-posts-admin-js', CAT_POST_PLUGINURL . 'js/admin/category-posts-widget.js',array('jquery'),CAT_POST_VERSION,true );
315
- wp_enqueue_script( 'category-posts-admin-js' );
316
- }
317
- }
318
-
319
  /**
320
  * Get image size
321
  *
4
  Plugin URI: http://mkrdip.me/category-posts-widget
5
  Description: Adds a widget that shows the most recent posts from a single category.
6
  Author: Mrinal Kanti Roy
7
+ Version: 4.1.9
8
  Author URI: http://mkrdip.me
9
  */
10
 
220
  */
221
  function category_posts_widget_admin_scripts($hook) {
222
 
223
+ if ($hook == 'widgets.php') { // enqueue only for widget admin and customizer
 
224
  if (version_compare( $GLOBALS['wp_version'], '4.4', '>=' ) || !isset($GLOBALS['wp_customize'])) {
225
+
226
+ // select2
227
  wp_enqueue_script( 'select2-css', plugins_url( 'js/select2-4.0.1/js/select2.min.js' , __FILE__ ), array( 'jquery' ),'4.0.1' );
228
  wp_enqueue_style( 'select2-js', plugins_url( 'js/select2-4.0.1/css/select2.min.css' , __FILE__ ) );
229
 
230
  add_action('admin_print_scripts','category_posts_widget_load_select2_scripts_footer',100);
231
 
232
  }
233
+
234
+ // control open and close the widget section
235
+ wp_register_script( 'category-posts-widget-admin-js', CAT_POST_PLUGINURL.'/js/admin/category-posts-widget.js',array('jquery'),'0.9',true );
236
  wp_enqueue_script( 'category-posts-widget-admin-js' );
237
  }
238
  }
305
  <?php
306
  }
307
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  /**
309
  * Get image size
310
  *
readme.txt CHANGED
@@ -14,13 +14,15 @@ Adds a widget that shows the most recent posts from a single category.
14
  Category Posts Widget is a light widget designed to do one thing and do it well: display the most recent posts from a certain category.
15
 
16
  = Term and Category based Posts Widget =
17
- It's the pro version and available on <a target="_blank" href="http://tiptoppress.com/">Tip Top Press.com</a> created for big Wordpress sites.
 
 
18
 
19
  = Pro features =
20
- * Custom Post Types, Terms and Custom Taxonomies
21
  * Multi selection
22
- * Different styles, like vertical scrolling ticker
23
- * [Examples on the demo page](http://demo.tiptoppress.com/)
24
 
25
  = Features =
26
  * Option to change ordering of posts.
14
  Category Posts Widget is a light widget designed to do one thing and do it well: display the most recent posts from a certain category.
15
 
16
  = Term and Category based Posts Widget =
17
+ It's the pro version and available on <a target="_blank" href="http://tiptoppress.com/">Tip Top Press</a> created for big Wordpress sites.
18
+
19
+ We giving you a 20%-special release discount code: **'release'**. (Enter it after checkout and before paying.)
20
 
21
  = Pro features =
22
+ * Custom Post Types, Terms and Custom Taxonomies (e.g. WooCommerce products)
23
  * Multi selection
24
+ * Different styles, like vertical scrolling ticker, Full width
25
+ * More [examples on the demo page](http://demo.tiptoppress.com/)
26
 
27
  = Features =
28
  * Option to change ordering of posts.