Insert Pages - Version 3.5.7

Version Description

  • Prevent Flamingo (Contact Forms 7 plugin) inbound messages with the same slug as an existing inserted page from showing up.
Download this release

Release Info

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

Code changes from version 3.5.6 to 3.5.7

Files changed (2) hide show
  1. insert-pages.php +15 -2
  2. readme.txt +3 -0
insert-pages.php CHANGED
@@ -7,7 +7,7 @@
7
  * Text Domain: insert-pages
8
  * Domain Path: /languages
9
  * License: GPL2
10
- * Version: 3.5.6
11
  *
12
  * @package insert-pages
13
  */
@@ -1452,7 +1452,20 @@ if ( ! class_exists( 'InsertPagesPlugin' ) ) {
1452
  * @return boolean Whether post type is insertable.
1453
  */
1454
  private function is_post_type_insertable( $type ) {
1455
- return ! in_array( $type, array( 'nav_menu_item', 'attachment', 'revision', 'customize_changeset', 'oembed_cache' ), true );
 
 
 
 
 
 
 
 
 
 
 
 
 
1456
  }
1457
 
1458
  /**
7
  * Text Domain: insert-pages
8
  * Domain Path: /languages
9
  * License: GPL2
10
+ * Version: 3.5.7
11
  *
12
  * @package insert-pages
13
  */
1452
  * @return boolean Whether post type is insertable.
1453
  */
1454
  private function is_post_type_insertable( $type ) {
1455
+ return ! in_array(
1456
+ $type,
1457
+ array(
1458
+ 'nav_menu_item',
1459
+ 'attachment',
1460
+ 'revision',
1461
+ 'customize_changeset',
1462
+ 'oembed_cache',
1463
+ // Exclude Flamingo messages (created via Contact Form 7 submissions).
1464
+ // See: https://wordpress.org/support/topic/plugin-hacked-14/
1465
+ 'flamingo_inbound',
1466
+ ),
1467
+ true
1468
+ );
1469
  }
1470
 
1471
  /**
readme.txt CHANGED
@@ -111,6 +111,9 @@ Just one! The plugin prevents you from embedding a page in itself, but you can t
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 3.5.6 =
115
  * Tested up to WordPress 5.5.1.
116
  * Update gutenberg block loading method to newer version.
111
 
112
  == Changelog ==
113
 
114
+ = 3.5.7 =
115
+ * Prevent Flamingo (Contact Forms 7 plugin) inbound messages with the same slug as an existing inserted page from showing up.
116
+
117
  = 3.5.6 =
118
  * Tested up to WordPress 5.5.1.
119
  * Update gutenberg block loading method to newer version.