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. Built from https://develop.svn.wordpress.org/trunk@52218 git-svn-id: http://core.svn.wordpress.org/trunk@51810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
105 KiB
105 KiB