[wp-trac] [WordPress Trac] #60676: password-strength-meter.js: deprecated message and translation hints visible in generated source code

WordPress Trac noreply at wordpress.org
Sat Mar 2 23:00:58 UTC 2024


#60676: password-strength-meter.js: deprecated message and translation hints
visible in generated source code
---------------------------+-----------------------------
 Reporter:  inno1          |      Owner:  (none)
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:  6.4.3
 Severity:  normal         |   Keywords:  needs-patch
  Focuses:  javascript     |
---------------------------+-----------------------------
 Wordpress 6.4.3
 Looking in the html source code in the page "forgotten password" I found
 the following lines, including a "deprecated" message and hints for
 translating:

 <script id="password-strength-meter-js-translations">
 ( function( domain, translations ) {
         var localeData = translations.locale_data[ domain ] ||
 translations.locale_data.messages;
         localeData[""].domain = domain;
         wp.i18n.setLocaleData( localeData, domain );
 } )( "default", {"translation-revision-date":"2024-01-30
 16:22:31+0000","generator":"GlotPress\/4.0.0-beta.2","domain":"messages","locale_data":{"messages":{"":{"domain":"messages
 ","plural-forms":"nplurals=2; plural=n != 1;","lang":"de"},"%1$s is
 deprecated since version %2$s! Use %3$s instead. Please consider writing
 more inclusive code.":["%1$s ist seit Version %2$s veraltet! Benutze
 stattdessen %3$s. Bitte erw\u00e4ge, inklusiveren Code zu
 schreiben."]}},"comment":{"reference":"wp-admin\/js\/password-strength-
 meter.js"}} );
 </script>

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60676>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list