I18N: Add a class_exists() check to Plural_Forms class for consistency with other POMO library classes.

Follow-up to [41722].

Fixes #50881.

git-svn-id: https://develop.svn.wordpress.org/trunk@48769 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-08-10 11:32:01 +00:00
parent e0ad73b0a0
commit 82104fac79

View File

@ -5,7 +5,8 @@
*
* @since 4.9.0
*/
class Plural_Forms {
if ( ! class_exists( 'Plural_Forms', false ) ) :
class Plural_Forms {
/**
* Operator characters.
*
@ -341,4 +342,5 @@ class Plural_Forms {
return (int) $stack[0];
}
}
}
endif;