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 | Insert Pages |
Version | 3.5.0 |
Comparing to | |
See all releases |
Code changes from version 3.4.7 to 3.5.0
- insert-pages.php +46 -44
- 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.
|
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 |
-
|
93 |
-
|
94 |
-
|
95 |
-
'
|
96 |
-
'
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
'
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
'
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
'
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
'
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
'
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
'
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
),
|
123 |
-
'
|
124 |
-
|
125 |
-
|
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).
|