| @@ -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 | } |