Insert Pages - Version 3.5.0

Version Description

  • Add Gutenberg block.
  • Fix for WSOD in WordPress versions before 5.0 (unintentionally included Gutenberg block in last release).
  • Fix PHP warnings in some contexts.
Download this release

Release Info

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

Code changes from version 3.4.7 to 3.5.0

Files changed (2) hide show
  1. insert-pages.php +46 -44
  2. readme.txt +5 -0
insert-pages.php CHANGED
@@ -7,7 +7,7 @@
7
  * Text Domain: insert-pages
8
  * Domain Path: /languages
9
  * License: GPL2
10
- * Version: 3.4.7
11
  *
12
  * @package insert-pages
13
  */
@@ -88,50 +88,52 @@ if ( ! class_exists( 'InsertPagesPlugin' ) ) {
88
  add_shortcode( 'insert', array( $this, 'insert_pages_handle_shortcode_insert' ) );
89
 
90
  // Register the gutenberg block so we can populate it via server side rendering.
91
- register_block_type(
92
- 'insert-pages/block',
93
- array(
94
- 'attributes' => array(
95
- 'url' => array(
96
- 'type' => 'string',
97
- 'default' => '',
98
- ),
99
- 'page' => array(
100
- 'type' => 'number',
101
- 'default' => 0,
102
- ),
103
- 'display' => array(
104
- 'type' => 'string',
105
- 'default' => 'title',
106
- ),
107
- 'template' => array(
108
- 'type' => 'string',
109
- 'default' => '',
110
- ),
111
- 'class' => array(
112
- 'type' => 'string',
113
- 'default' => '',
114
- ),
115
- 'id' => array(
116
- 'type' => 'string',
117
- 'default' => '',
118
- ),
119
- 'inline' => array(
120
- 'type' => 'bool',
121
- 'default' => false,
 
 
 
 
 
 
 
 
 
 
122
  ),
123
- 'public' => array(
124
- 'type' => 'bool',
125
- 'default' => false,
126
- ),
127
- 'querystring' => array(
128
- 'type' => 'string',
129
- 'default' => '',
130
- ),
131
- ),
132
- 'render_callback' => array( $this, 'block_render_callback' ),
133
- )
134
- );
135
  }
136
 
137
 
7
  * Text Domain: insert-pages
8
  * Domain Path: /languages
9
  * License: GPL2
10
+ * Version: 3.5.0
11
  *
12
  * @package insert-pages
13
  */
88
  add_shortcode( 'insert', array( $this, 'insert_pages_handle_shortcode_insert' ) );
89
 
90
  // Register the gutenberg block so we can populate it via server side rendering.
91
+ if ( function_exists( 'register_block_type' ) ) {
92
+ register_block_type(
93
+ 'insert-pages/block',
94
+ array(
95
+ 'attributes' => array(
96
+ 'url' => array(
97
+ 'type' => 'string',
98
+ 'default' => '',
99
+ ),
100
+ 'page' => array(
101
+ 'type' => 'number',
102
+ 'default' => 0,
103
+ ),
104
+ 'display' => array(
105
+ 'type' => 'string',
106
+ 'default' => 'title',
107
+ ),
108
+ 'template' => array(
109
+ 'type' => 'string',
110
+ 'default' => '',
111
+ ),
112
+ 'class' => array(
113
+ 'type' => 'string',
114
+ 'default' => '',
115
+ ),
116
+ 'id' => array(
117
+ 'type' => 'string',
118
+ 'default' => '',
119
+ ),
120
+ 'inline' => array(
121
+ 'type' => 'bool',
122
+ 'default' => false,
123
+ ),
124
+ 'public' => array(
125
+ 'type' => 'bool',
126
+ 'default' => false,
127
+ ),
128
+ 'querystring' => array(
129
+ 'type' => 'string',
130
+ 'default' => '',
131
+ ),
132
  ),
133
+ 'render_callback' => array( $this, 'block_render_callback' ),
134
+ )
135
+ );
136
+ }
 
 
 
 
 
 
 
 
137
  }
138
 
139
 
readme.txt CHANGED
@@ -86,6 +86,11 @@ Just one! The plugin prevents you from embedding a page in itself, but you can t
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
89
  = 3.4.7 =
90
  * Larger Insert Page modal height in Classic Editor (accommodate larger WP 5.3 form elements).
91
  * Update npm packages (gutenberg build dependencies).
86
 
87
  == Changelog ==
88
 
89
+ = 3.5.0 =
90
+ * Add Gutenberg block.
91
+ * Fix for [WSOD](https://wordpress.org/support/topic/app-v3-4-7-not-compatible-with-wp-v4-9-6) in WordPress versions before 5.0 (unintentionally included Gutenberg block in last release).
92
+ * Fix PHP warnings in some contexts.
93
+
94
  = 3.4.7 =
95
  * Larger Insert Page modal height in Classic Editor (accommodate larger WP 5.3 form elements).
96
  * Update npm packages (gutenberg build dependencies).