rebase on oct-10-2023
This commit is contained in:
@@ -120,7 +120,7 @@ if ( ! class_exists( 'Translations', false ) ) :
|
||||
* @param int $count number of items
|
||||
*/
|
||||
public function select_plural_form( $count ) {
|
||||
return 1 == $count ? 0 : 1;
|
||||
return 1 === (int) $count ? 0 : 1;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -152,7 +152,7 @@ if ( ! class_exists( 'Translations', false ) ) :
|
||||
isset( $translated->translations[ $index ] ) ) {
|
||||
return $translated->translations[ $index ];
|
||||
} else {
|
||||
return 1 == $count ? $singular : $plural;
|
||||
return 1 === (int) $count ? $singular : $plural;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ if ( ! class_exists( 'NOOP_Translations', false ) ) :
|
||||
* @return bool
|
||||
*/
|
||||
public function select_plural_form( $count ) {
|
||||
return 1 == $count ? 0 : 1;
|
||||
return 1 === (int) $count ? 0 : 1;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -383,7 +383,7 @@ if ( ! class_exists( 'NOOP_Translations', false ) ) :
|
||||
* @param string $context
|
||||
*/
|
||||
public function translate_plural( $singular, $plural, $count, $context = null ) {
|
||||
return 1 == $count ? $singular : $plural;
|
||||
return 1 === (int) $count ? $singular : $plural;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user