Skip to content

Commit 658360f

Browse files
committed
Remove post limit to fetch attachments for retranscode all media
1 parent 5302ae4 commit 658360f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

admin/rt-retranscode-admin.php

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

0 commit comments

Comments
 (0)