PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.7.2
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.7.2
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/views/xml/posts_xml.php +6 -3 6.36.7.2 View file →
@@ -2,8 +2,10 @@
2 2 /**
3 3 * Generate the XML for export for posts and form actions.
4 4 *
5 5 * @phpcs:disable Generic.WhiteSpace.ScopeIndent.Incorrect
6 + *
7 + * @package Formidable
6 8 */
7 9
8 10 if ( ! defined( 'ABSPATH' ) ) {
9 11 die( 'You are not allowed to call this page directly.' );
@@ -13,9 +15,10 @@
13 15 return;
14 16 }
15 17
16 18 global $wp_query;
17 -$wp_query->in_the_loop = true; // Fake being in the loop.
19 +// Fake being in the loop.
20 +$wp_query->in_the_loop = true;
18 21
19 22 // fetch 20 posts at a time rather than loading the entire table into memory
20 23 while ( $next_posts = array_splice( $item_ids, 0, 20 ) ) {
21 24 $posts = FrmDb::get_results( $wpdb->posts, array( 'ID' => $next_posts ) );
@@ -86,10 +89,10 @@
86 89 }
87 90 ?>
88 91 </view>
89 92 <?php
90 - }
91 -}
93 + }//end foreach
94 +}//end while
92 95
93 96 if ( empty( $taxonomies ) ) {
94 97 return;
95 98 }