Content Blocks (Custom Post Widget) - Version 2.3.2

Version Description

Removed hardcoded plugins folder path

Download this release

Release Info

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

Code changes from version 2.3.1 to 2.3.2

Files changed (3) hide show
  1. custom-post-widget.php +1 -1
  2. post-widget.php +2 -2
  3. readme.txt +3 -0
custom-post-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Custom Post Widget
4
  Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-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: 2.3.1
7
  Author: Johan van der Wijk
8
  Author URI: http://www.vanderwijk.com
9
  License: GPL2
3
  Plugin Name: Custom Post Widget
4
  Plugin URI: http://www.vanderwijk.com/wordpress/wordpress-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: 2.3.2
7
  Author: Johan van der Wijk
8
  Author URI: http://www.vanderwijk.com
9
  License: GPL2
post-widget.php CHANGED
@@ -210,11 +210,11 @@ add_shortcode( 'content_block', 'custom_post_widget_shortcode' );
210
  function add_content_block_icon() {
211
  echo '<style>
212
  #add-content-block .wp-media-buttons-icon {
213
- background: url(../wp-content/plugins/custom-post-widget/images/contentblock.png) no-repeat -7px -40px;
214
  margin-right: 3px;
215
  }
216
  #add-content-block:hover .wp-media-buttons-icon {
217
- background: url(../wp-content/plugins/custom-post-widget/images/contentblock.png) no-repeat -7px -8px;
218
  }
219
  #add-content-block {
220
  padding-left: 0.4em;
210
  function add_content_block_icon() {
211
  echo '<style>
212
  #add-content-block .wp-media-buttons-icon {
213
+ background: url( ' . plugins_url( "images/contentblock.png", __FILE__ ). ' ) no-repeat -7px -40px;
214
  margin-right: 3px;
215
  }
216
  #add-content-block:hover .wp-media-buttons-icon {
217
+ background: url( ' . plugins_url( "images/contentblock.png", __FILE__ ). ' ) no-repeat -7px -8px;
218
  }
219
  #add-content-block {
220
  padding-left: 0.4em;
readme.txt CHANGED
@@ -87,6 +87,9 @@ Creating and supporting this plugin takes up a lot of my free time, therefore I
87
 
88
  == Changelog ==
89
 
 
 
 
90
  = 2.3.1 =
91
  Removed call to CUSTOM_POST_WIDGET_DIR
92
 
87
 
88
  == Changelog ==
89
 
90
+ = 2.3.2 =
91
+ Removed hardcoded plugins folder path
92
+
93
  = 2.3.1 =
94
  Removed call to CUSTOM_POST_WIDGET_DIR
95