mirror of
git://develop.git.wordpress.org/
synced 2025-03-25 06:20:06 +01:00
For consistency and simplification, replaces the `function_exists( '__' )` checks with `wp_load_translations_early()` to make sure i18n functions are available. This change removes the extra code introduced in [52176] for using non-translated error messages when `__()` is not available. Improves the plural versions of the error messages. For performance, when there are more than one problem field, uses `reset()` to populate the field in the error message. Follow-up to [52176], [52195]. Props sergeybiryukov, hellofromTonya. Fixes #32315. git-svn-id: https://develop.svn.wordpress.org/trunk@52218 602fd350-edb4-49c9-b593-d223f7449a82