Insert Pages - Version 3.2.0

Version Description

  • Fix for toolbar button disappearing when the SiteOrigin PageBuilder Widgets Bundle plugin is enabled. Props @JarkkoLaine for figuring that one out! Ref: https://wordpress.org/support/topic/button-in-the-toolbar-of-tinymce-disappear-conflict-page-builder/
Download this release

Release Info

Developer figureone
Plugin Icon wp plugin Insert Pages
Version 3.2.0
Comparing to
See all releases

Code changes from version 3.1.9 to 3.2.0

Files changed (2) hide show
  1. insert-pages.php +5 -4
  2. readme.txt +3 -0
insert-pages.php CHANGED
@@ -9,7 +9,7 @@ Author URI: http://www.linkedin.com/in/paulrryan
9
  Text Domain: insert-pages
10
  Domain Path: /languages
11
  License: GPL2
12
- Version: 3.1.9
13
  */
14
 
15
  /* Copyright 2011 Paul Ryan (email: prar@hawaii.edu)
@@ -93,9 +93,6 @@ if ( !class_exists( 'InsertPagesPlugin' ) ) {
93
  '20151230'
94
  );
95
 
96
- add_filter( 'mce_external_plugins', array( $this, 'insertPages_handleFilter_mceExternalPlugins' ) );
97
- add_filter( 'mce_buttons', array( $this, 'insertPages_handleFilter_mceButtons' ) );
98
-
99
  load_plugin_textdomain(
100
  'insert-pages',
101
  false,
@@ -805,6 +802,10 @@ if ( isset( $insertPages_plugin ) ) {
805
  // Use internal filter to wrap inserted content in a div or span.
806
  add_filter( 'insert_pages_wrap_content', array( $insertPages_plugin, 'insertPages_wrap_content' ), 10, 3 );
807
 
 
 
 
 
808
  // Register Insert Pages shortcode widget.
809
  require_once( dirname( __FILE__ ) . '/widget.php' );
810
  add_action( 'widgets_init', create_function( '', 'return register_widget( "InsertPagesWidget" );' ) );
9
  Text Domain: insert-pages
10
  Domain Path: /languages
11
  License: GPL2
12
+ Version: 3.2.0
13
  */
14
 
15
  /* Copyright 2011 Paul Ryan (email: prar@hawaii.edu)
93
  '20151230'
94
  );
95
 
 
 
 
96
  load_plugin_textdomain(
97
  'insert-pages',
98
  false,
802
  // Use internal filter to wrap inserted content in a div or span.
803
  add_filter( 'insert_pages_wrap_content', array( $insertPages_plugin, 'insertPages_wrap_content' ), 10, 3 );
804
 
805
+ // Register TinyMCE plugin for the toolbar button.
806
+ add_filter( 'mce_external_plugins', array( $insertPages_plugin, 'insertPages_handleFilter_mceExternalPlugins' ) );
807
+ add_filter( 'mce_buttons', array( $insertPages_plugin, 'insertPages_handleFilter_mceButtons' ) );
808
+
809
  // Register Insert Pages shortcode widget.
810
  require_once( dirname( __FILE__ ) . '/widget.php' );
811
  add_action( 'widgets_init', create_function( '', 'return register_widget( "InsertPagesWidget" );' ) );
readme.txt CHANGED
@@ -86,6 +86,9 @@ Just one! The plugin prevents you from embedding a page in itself, but you can t
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 3.1.9 =
90
  * Support `shortcode_atts_insert` filter for filtering the shortcode's default attributes. Props @gtrout for the pull request!
91
 
86
 
87
  == Changelog ==
88
 
89
+ = 3.2.0 =
90
+ * Fix for toolbar button disappearing when the SiteOrigin PageBuilder Widgets Bundle plugin is enabled. Props @JarkkoLaine for figuring that one out! Ref: https://wordpress.org/support/topic/button-in-the-toolbar-of-tinymce-disappear-conflict-page-builder/
91
+
92
  = 3.1.9 =
93
  * Support `shortcode_atts_insert` filter for filtering the shortcode's default attributes. Props @gtrout for the pull request!
94