From 28f8cb187a46b4604295ef9d1f084799c718ba3d Mon Sep 17 00:00:00 2001 From: Rebecca Hum <16962021+rebeccahum@users.noreply.github.com> Date: Mon, 5 Jun 2023 12:38:44 -0600 Subject: [PATCH] Remove unused `$provide_default` --- search/includes/classes/class-versioning.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/search/includes/classes/class-versioning.php b/search/includes/classes/class-versioning.php index 3e56293fe25..64f1806f76b 100644 --- a/search/includes/classes/class-versioning.php +++ b/search/includes/classes/class-versioning.php @@ -220,10 +220,9 @@ public function get_inactive_versions( Indexable $indexable ) { * Retrieve details about available index versions * * @param \ElasticPress\Indexable $indexable The Indexable for which to retrieve index versions - * @param bool $provide_default If on corrupted or incomplete versioning default version 1 should be provided * @return array Array of index versions */ - public function get_versions( Indexable $indexable, bool $provide_default = true ) { + public function get_versions( Indexable $indexable ) { $versions = []; if ( $indexable->global ) { @@ -938,7 +937,7 @@ public function maybe_self_heal() { $indexables_to_heal = []; foreach ( $indexables as $indexable ) { - $versions = $this->get_versions( $indexable, false ); + $versions = $this->get_versions( $indexable ); if ( ! is_array( $versions ) || count( $versions ) === 0 ) { $indexables_to_heal[] = $indexable; }