Version Description
- Fix: Add compatibility for PHP 5.2 in the widget registration code. See https://codex.wordpress.org/Widgets_API
Download this release
Release Info
Developer | figureone |
Plugin | Insert Pages |
Version | 3.1.1 |
Comparing to | |
See all releases |
Code changes from version 3.1 to 3.1.1
- insert-pages.php +2 -2
- readme.txt +3 -0
insert-pages.php
CHANGED
@@ -5,7 +5,7 @@ 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
|
9 |
Author URI: http://www.linkedin.com/in/paulrryan
|
10 |
License: GPL2
|
11 |
*/
|
@@ -766,5 +766,5 @@ if ( isset( $insertPages_plugin ) ) {
|
|
766 |
|
767 |
// Register Insert Pages shortcode widget.
|
768 |
require_once( dirname( __FILE__ ) . '/widget.php' );
|
769 |
-
add_action( 'widgets_init',
|
770 |
}
|
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.1
|
9 |
Author URI: http://www.linkedin.com/in/paulrryan
|
10 |
License: GPL2
|
11 |
*/
|
766 |
|
767 |
// Register Insert Pages shortcode widget.
|
768 |
require_once( dirname( __FILE__ ) . '/widget.php' );
|
769 |
+
add_action( 'widgets_init', create_function( '', 'return register_widget( "InsertPagesWidget" );' ) );
|
770 |
}
|
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 =
|
90 |
* Feature: Insert Page widget. Go to Appearance > Widgets to add the Insert Page widget to any of your widget areas. Specify a page slug or ID in the widget, and that page will get displayed in the widget area.
|
91 |
|
86 |
|
87 |
== Changelog ==
|
88 |
|
89 |
+
= 3.1.1 =
|
90 |
+
* Fix: Add compatibility for PHP 5.2 in the widget registration code. See https://codex.wordpress.org/Widgets_API
|
91 |
+
|
92 |
= 3.1 =
|
93 |
* Feature: Insert Page widget. Go to Appearance > Widgets to add the Insert Page widget to any of your widget areas. Specify a page slug or ID in the widget, and that page will get displayed in the widget area.
|
94 |
|