Skip to content

Commit

Permalink
Remove unused $provide_default
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Jun 5, 2023
1 parent df565b7 commit 28f8cb1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions search/includes/classes/class-versioning.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 28f8cb1

Please sign in to comment.