Insert Pages - Version 3.2.7

Version Description

  • Add insert_pages_override_display filter so site admins can enforce a specific display on all inserted pages.
Download this release

Release Info

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

Code changes from version 3.2.6 to 3.2.7

Files changed (2) hide show
  1. insert-pages.php +14 -2
  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.2.6
13
  */
14
 
15
  /* Copyright 2011 Paul Ryan (email: prar@hawaii.edu)
@@ -173,10 +173,22 @@ if ( !class_exists( 'InsertPagesPlugin' ) ) {
173
  * on inserting pages that themselves have inserted pages, so this
174
  * check should be disabled for those individuals.
175
  *
176
- * @param bool $apply_the_content_filter Indicates whether to apply the_content filter.
177
  */
178
  $attributes['should_apply_nesting_check'] = apply_filters( 'insert_pages_apply_nesting_check', $attributes['should_apply_nesting_check'] );
179
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  // Don't allow inserted pages to be added to the_content more than once (prevent infinite loops).
181
  if ( $attributes['should_apply_nesting_check'] ) {
182
  $done = false;
9
  Text Domain: insert-pages
10
  Domain Path: /languages
11
  License: GPL2
12
+ Version: 3.2.7
13
  */
14
 
15
  /* Copyright 2011 Paul Ryan (email: prar@hawaii.edu)
173
  * on inserting pages that themselves have inserted pages, so this
174
  * check should be disabled for those individuals.
175
  *
176
+ * @param bool $apply_nesting_check Indicates whether to apply deep nesting check.
177
  */
178
  $attributes['should_apply_nesting_check'] = apply_filters( 'insert_pages_apply_nesting_check', $attributes['should_apply_nesting_check'] );
179
 
180
+ /**
181
+ * Filter the chosen display method, where display can be one of:
182
+ * title, link, excerpt, excerpt-only, content, all, {custom-template.php}
183
+ * Useful for admins who want to restrict the display sitewide.
184
+ *
185
+ * @since 3.2.7
186
+ *
187
+ * @param string $display The display method for the inserted page.
188
+ */
189
+ $attributes['display'] = apply_filters( 'insert_pages_override_display', $attributes['display'] );
190
+
191
+
192
  // Don't allow inserted pages to be added to the_content more than once (prevent infinite loops).
193
  if ( $attributes['should_apply_nesting_check'] ) {
194
  $done = false;
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.2.6 =
90
  * Fix for custom templates issues on certain platforms (e.g., Windows).
91
 
86
 
87
  == Changelog ==
88
 
89
+ = 3.2.7 =
90
+ * Add insert_pages_override_display filter so site admins can enforce a specific display on all inserted pages.
91
+
92
  = 3.2.6 =
93
  * Fix for custom templates issues on certain platforms (e.g., Windows).
94