Skip to content

Commit

Permalink
resort array, don't replace
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Jan 7, 2025
1 parent 4d0afcb commit e63580c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Git_Updater/Traits/API_Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function ( $readme ) {
}
}
);
$readmes = ! empty( $readme_txt ) ? $readme_txt : $readmes;
$readmes = array_unique( array_merge( $readme_txt, $readmes ) );

if ( ! $response ) {
self::$method = 'readme';
Expand Down

0 comments on commit e63580c

Please sign in to comment.