Skip to content

Commit 7b3ed6d

Browse files
committed
Revert "Remove post limit to fetch attachments for retranscode all media"
This reverts commit 658360f.
1 parent 658360f commit 7b3ed6d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

admin/rt-retranscode-admin.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,7 @@ public function retranscode_interface() {
318318
}
319319
} else {
320320
add_filter( 'posts_where', array( $this, 'add_search_mime_types' ) );
321-
322-
$query = new WP_Query(
323-
array(
324-
'post_type' => 'attachments',
325-
'posts_per_page' => -1,
326-
'post_status' => 'any',
327-
)
328-
);
321+
$query = new WP_Query( array( 'post_type' => 'attachments' ) );
329322
$media = $query->get_posts();
330323
remove_filter( 'posts_where', array( $this, 'add_search_mime_types' ) );
331324
if ( empty( $media ) || is_wp_error( $media ) ) {

0 commit comments

Comments
 (0)