Skip to content

Commit 9102a6f

Browse files
swissspidyCopilot
andauthored
Update src/Media_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 87ff004 commit 9102a6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Media_Command.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,10 @@ private function process_prune( $id, $image_sizes, $remove_abandoned, $progress,
10371037
$sizes_to_prune = array();
10381038

10391039
foreach ( $metadata['sizes'] as $size_name => $size_meta ) {
1040+
// The 'full' size is not an intermediate size and should never be pruned.
1041+
if ( 'full' === $size_name ) {
1042+
continue;
1043+
}
10401044
$is_registered = in_array( $size_name, $registered_sizes, true );
10411045

10421046
// Determine whether this size should be pruned.

0 commit comments

Comments
 (0)