Insert Pages - Version 3.5.3.1

Version Description

  • Revert change affecting Elementor using legacy insert method. Props @progameinc for reporting it so quickly!
Download this release

Release Info

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

Code changes from version 3.5.3 to 3.5.3.1

Files changed (2) hide show
  1. insert-pages.php +3 -3
  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.3
11
  *
12
  * @package insert-pages
13
  */
@@ -854,7 +854,7 @@ if ( ! class_exists( 'InsertPagesPlugin' ) ) {
854
  case 'content':
855
  // If Elementor is installed, try to render the page with it. If there is no Elementor content, fall back to normal rendering.
856
  if ( class_exists( '\Elementor\Plugin' ) ) {
857
- $elementor_content = \Elementor\Plugin::$instance->frontend->get_builder_content( get_the_ID() );
858
  if ( strlen( $elementor_content ) > 0 ) {
859
  echo $elementor_content;
860
  break;
@@ -874,7 +874,7 @@ if ( ! class_exists( 'InsertPagesPlugin' ) ) {
874
  ) );
875
  break;
876
  case 'post-thumbnail':
877
- ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a>
878
  <?php
879
  break;
880
  case 'all':
7
  * Text Domain: insert-pages
8
  * Domain Path: /languages
9
  * License: GPL2
10
+ * Version: 3.5.3.1
11
  *
12
  * @package insert-pages
13
  */
854
  case 'content':
855
  // If Elementor is installed, try to render the page with it. If there is no Elementor content, fall back to normal rendering.
856
  if ( class_exists( '\Elementor\Plugin' ) ) {
857
+ $elementor_content = \Elementor\Plugin::$instance->frontend->get_builder_content( $inserted_page->ID );
858
  if ( strlen( $elementor_content ) > 0 ) {
859
  echo $elementor_content;
860
  break;
874
  ) );
875
  break;
876
  case 'post-thumbnail':
877
+ ?><a href="<?php echo esc_url( get_permalink( $inserted_page->ID ) ); ?>"><?php echo get_the_post_thumbnail( $inserted_page->ID ); ?></a>
878
  <?php
879
  break;
880
  case 'all':
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.3 =
115
  * Update Gutenberg block (replace deprecated calls).
116
  * Add automatic loop detection; nested inserts now work by default.
111
 
112
  == Changelog ==
113
 
114
+ = 3.5.3.1 =
115
+ * Revert change affecting Elementor using legacy insert method. Props @progameinc for reporting it so quickly!
116
+
117
  = 3.5.3 =
118
  * Update Gutenberg block (replace deprecated calls).
119
  * Add automatic loop detection; nested inserts now work by default.