Version Description
- Fix for widget being used in the Beaver Builder widget interface.
Download this release
Release Info
Developer | figureone |
Plugin | Insert Pages |
Version | 3.1.8 |
Comparing to | |
See all releases |
Code changes from version 3.1.7 to 3.1.8
- insert-pages.php +3 -1
- readme.txt +3 -2
- widget.php +6 -6
insert-pages.php
CHANGED
@@ -5,9 +5,11 @@ Plugin Name: Insert Pages
|
|
5 |
Plugin URI: https://github.com/uhm-coe/insert-pages
|
6 |
Description: Insert Pages lets you embed any WordPress content (e.g., pages, posts, custom post types) into other WordPress content using the Shortcode API.
|
7 |
Author: Paul Ryan
|
8 |
-
Version: 3.1.7
|
9 |
Author URI: http://www.linkedin.com/in/paulrryan
|
|
|
|
|
10 |
License: GPL2
|
|
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2011 Paul Ryan (email: prar@hawaii.edu)
|
5 |
Plugin URI: https://github.com/uhm-coe/insert-pages
|
6 |
Description: Insert Pages lets you embed any WordPress content (e.g., pages, posts, custom post types) into other WordPress content using the Shortcode API.
|
7 |
Author: Paul Ryan
|
|
|
8 |
Author URI: http://www.linkedin.com/in/paulrryan
|
9 |
+
Text Domain: insert-pages
|
10 |
+
Domain Path: /languages
|
11 |
License: GPL2
|
12 |
+
Version: 3.1.8
|
13 |
*/
|
14 |
|
15 |
/* Copyright 2011 Paul Ryan (email: prar@hawaii.edu)
|
readme.txt
CHANGED
@@ -4,8 +4,6 @@ Tags: insert, pages, shortcode, embed
|
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.6.2
|
6 |
Stable tag: trunk
|
7 |
-
Text Domain: insert-pages
|
8 |
-
Domain Path: /languages
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -88,6 +86,9 @@ Just one! The plugin prevents you from embedding a page in itself, but you can t
|
|
88 |
|
89 |
== Changelog ==
|
90 |
|
|
|
|
|
|
|
91 |
= 3.1.7 =
|
92 |
* Plugin is now translatable (internationalization). Props @maxgx for getting the ball rolling and creating a translation.
|
93 |
|
4 |
Requires at least: 3.0.1
|
5 |
Tested up to: 4.6.2
|
6 |
Stable tag: trunk
|
|
|
|
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 3.1.8 =
|
90 |
+
* Fix for widget being used in the Beaver Builder widget interface.
|
91 |
+
|
92 |
= 3.1.7 =
|
93 |
* Plugin is now translatable (internationalization). Props @maxgx for getting the ball rolling and creating a translation.
|
94 |
|
widget.php
CHANGED
@@ -98,7 +98,7 @@ class InsertPagesWidget extends WP_Widget {
|
|
98 |
</select>
|
99 |
<select class="insertpage-template-select" name="<?php echo $this->get_field_name( 'template' ); ?>" id="<?php echo $this->get_field_id( 'template' ); ?>" disabled="disabled">
|
100 |
<option value='all'><?php _e( 'Default Template', 'insert-pages' ); ?></option>
|
101 |
-
<?php page_template_dropdown( $instance['template'] ); ?>
|
102 |
</select>
|
103 |
</p>
|
104 |
<p>
|
@@ -120,11 +120,11 @@ class InsertPagesWidget extends WP_Widget {
|
|
120 |
public function update( $new_instance, $old_instance ) {
|
121 |
// Sanitize form options.
|
122 |
$instance = $old_instance;
|
123 |
-
$instance['page'] = strip_tags( $new_instance['page'] );
|
124 |
-
$instance['display'] = strip_tags( $new_instance['display'] );
|
125 |
-
$instance['template'] = strip_tags( $new_instance['template'] );
|
126 |
-
$instance['class'] = strip_tags( $new_instance['class'] );
|
127 |
-
$instance['inline'] = strip_tags( $new_instance['inline'] );
|
128 |
|
129 |
return $instance;
|
130 |
}
|
98 |
</select>
|
99 |
<select class="insertpage-template-select" name="<?php echo $this->get_field_name( 'template' ); ?>" id="<?php echo $this->get_field_id( 'template' ); ?>" disabled="disabled">
|
100 |
<option value='all'><?php _e( 'Default Template', 'insert-pages' ); ?></option>
|
101 |
+
<?php if ( function_exists( 'page_template_dropdown' ) ) page_template_dropdown( $instance['template'] ); ?>
|
102 |
</select>
|
103 |
</p>
|
104 |
<p>
|
120 |
public function update( $new_instance, $old_instance ) {
|
121 |
// Sanitize form options.
|
122 |
$instance = $old_instance;
|
123 |
+
$instance['page'] = array_key_exists( 'page', $new_instance ) ? strip_tags( $new_instance['page'] ) : '';
|
124 |
+
$instance['display'] = array_key_exists( 'display', $new_instance ) ? strip_tags( $new_instance['display'] ) : '';
|
125 |
+
$instance['template'] = array_key_exists( 'template', $new_instance ) ? strip_tags( $new_instance['template'] ) : '';
|
126 |
+
$instance['class'] = array_key_exists( 'class', $new_instance ) ? strip_tags( $new_instance['class'] ) : '';
|
127 |
+
$instance['inline'] = array_key_exists( 'inline', $new_instance ) ? strip_tags( $new_instance['inline'] ) : '';
|
128 |
|
129 |
return $instance;
|
130 |
}
|