Content Blocks (Custom Post Widget) - Version 3.2.1

Version Description

Bugfix for notice in shortcode.php

Download this release

Release Info

Developer vanderwijk
Plugin Icon 128x128 Content Blocks (Custom Post Widget)
Version 3.2.1
Comparing to
See all releases

Code changes from version 3.2 to 3.2.1

Files changed (3) hide show
  1. custom-post-widget.php +2 -2
  2. readme.txt +4 -1
  3. shortcode.php +2 -2
custom-post-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Content Blocks (Custom Post Widget)
4
  Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/?utm_source=wordpress&utm_medium=plugin&utm_campaign=custom_post_widget
5
  Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
6
- Version: 3.2
7
  Author: Johan van der Wijk
8
  Author URI: https://vanderwijk.nl
9
  Donate link: https://www.paypal.me/vanderwijk
@@ -94,4 +94,4 @@ if ( is_admin() ) {
94
  }
95
  add_action( 'admin_head', 'cpw_add_content_block_button' );
96
 
97
- }
3
  Plugin Name: Content Blocks (Custom Post Widget)
4
  Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/?utm_source=wordpress&utm_medium=plugin&utm_campaign=custom_post_widget
5
  Description: Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
6
+ Version: 3.2.1
7
  Author: Johan van der Wijk
8
  Author URI: https://vanderwijk.nl
9
  Donate link: https://www.paypal.me/vanderwijk
94
  }
95
  add_action( 'admin_head', 'cpw_add_content_block_button' );
96
 
97
+ }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: vanderwijk
3
  Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
4
  Requires at least: 4.0
5
  Tested up to: 5.7
6
- Stable tag: 3.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -133,6 +133,9 @@ Creating and supporting this plugin takes up a lot of my free time, therefore I
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = 3.2 =
137
  Thanks to Bruce from [Ingeni Web Solutions](https://ingeni.net/) it is now possible to use your own template for embedding the custom post shortcode.
138
 
3
  Tags: widget, sidebar, content block, block, custom, post, shortcode, wysiwyg, wpml, featured image
4
  Requires at least: 4.0
5
  Tested up to: 5.7
6
+ Stable tag: 3.2.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
133
 
134
  == Changelog ==
135
 
136
+ = 3.2.1 =
137
+ Bugfix for notice in shortcode.php
138
+
139
  = 3.2 =
140
  Thanks to Bruce from [Ingeni Web Solutions](https://ingeni.net/) it is now possible to use your own template for embedding the custom post shortcode.
141
 
shortcode.php CHANGED
@@ -53,7 +53,7 @@ function custom_post_widget_shortcode( $atts ) {
53
 
54
  foreach( $content_post as $post ) :
55
 
56
- if ( ( $located ) ) {
57
  // Template-based content
58
  $content .= call_user_func( 'shortcode_template', $post );
59
 
@@ -79,4 +79,4 @@ function custom_post_widget_shortcode( $atts ) {
79
 
80
  return $content;
81
  }
82
- add_shortcode( 'content_block', 'custom_post_widget_shortcode' );
53
 
54
  foreach( $content_post as $post ) :
55
 
56
+ if ( isset( $located ) ) {
57
  // Template-based content
58
  $content .= call_user_func( 'shortcode_template', $post );
59
 
79
 
80
  return $content;
81
  }
82
+ add_shortcode( 'content_block', 'custom_post_widget_shortcode' );