Skip to content

Commit 015b14d

Browse files
author
moldcraft
committed
1 parent c39ea67 commit 015b14d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

class-fw-extension-page-builder.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -366,13 +366,6 @@ public function _filter_the_posts($posts, $query) {
366366
* but we don't need post content in backend
367367
*/
368368
return $posts;
369-
} elseif (
370-
($posts_count = count($posts))
371-
&&
372-
$posts_count > 20 && $posts_count > (int)get_option('posts_per_page')
373-
) {
374-
// prevent useless content generate if it's a query just to display the page titles
375-
return $posts;
376369
}
377370

378371
if (
@@ -384,15 +377,8 @@ public function _filter_the_posts($posts, $query) {
384377
) {
385378
$posts[0]->post_content = $this->get_post_content_shortcodes($preview);
386379
} else {
387-
$processed = 0;
388-
$process_limit = (int)get_option('posts_per_page');
389-
390380
foreach ($posts as &$post) {
391381
$post->post_content = $this->get_post_content_shortcodes($post);
392-
393-
if (++$processed > $process_limit) {
394-
break;
395-
}
396382
}
397383
}
398384

0 commit comments

Comments
 (0)