Content Blocks (Custom Post Widget) - Version 2.5.6

Version Description

Changed the way the button above the content editor is inserted. For background see: http://wordpress.org/support/topic/soliloquy-conflict-1?replies=2

Download this release

Release Info

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

Code changes from version 2.5.5 to 2.5.6

Files changed (4) hide show
  1. custom-post-widget.php +1 -1
  2. popup.php +1 -1
  3. post-widget.php +1 -1
  4. readme.txt +1 -1
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.5.5
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.5.6
7
  Author: Johan van der Wijk
8
  Author URI: http://www.vanderwijk.com
9
  License: GPL2
popup.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // Add button above editor if not editing content_block
4
  function add_content_block_icon() {
5
- return '<style>
6
  #add-content-block .dashicons-screenoptions {
7
  color: #888;
8
  height: 18px;
2
 
3
  // Add button above editor if not editing content_block
4
  function add_content_block_icon() {
5
+ echo '<style>
6
  #add-content-block .dashicons-screenoptions {
7
  color: #888;
8
  height: 18px;
post-widget.php CHANGED
@@ -195,7 +195,7 @@ add_shortcode( 'content_block', 'custom_post_widget_shortcode' );
195
  function cpw_add_content_block_button() {
196
  global $current_screen;
197
  if( 'content_block' != $current_screen -> post_type ) {
198
- add_filter( 'media_buttons_context', 'add_content_block_icon' );
199
  add_action( 'admin_footer', 'add_content_block_popup' );
200
  }
201
  }
195
  function cpw_add_content_block_button() {
196
  global $current_screen;
197
  if( 'content_block' != $current_screen -> post_type ) {
198
+ add_action( 'media_buttons', 'add_content_block_icon' );
199
  add_action( 'admin_footer', 'add_content_block_popup' );
200
  }
201
  }
readme.txt CHANGED
@@ -103,7 +103,7 @@ Creating and supporting this plugin takes up a lot of my free time, therefore I
103
 
104
  == Changelog ==
105
 
106
- = 2.5.5 =
107
  Changed the way the button above the content editor is inserted. For background see: http://wordpress.org/support/topic/soliloquy-conflict-1?replies=2
108
 
109
  = 2.5.3 =
103
 
104
  == Changelog ==
105
 
106
+ = 2.5.6 =
107
  Changed the way the button above the content editor is inserted. For background see: http://wordpress.org/support/topic/soliloquy-conflict-1?replies=2
108
 
109
  = 2.5.3 =