WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/13/2015 10:34:18 PM (5 years ago)
Author:
obenland
Message:

Passwords: Make show/hide toggle translatable.

See #32589.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/script-loader.php

    r33166 r33249  
    374374
    375375    $scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array( 'jquery', 'password-strength-meter', 'wp-util' ), false, 1 );
     376    did_action( 'init' ) && $scripts->localize( 'user-profile', 'userProfileL10n', array(
     377        'show' => __( 'Show' ),
     378        'hide' => __( 'Hide' ),
     379    ) );
     380
    376381    $scripts->add( 'language-chooser', "/wp-admin/js/language-chooser$suffix.js", array( 'jquery' ), false, 1 );
    377382
Note: See TracChangeset for help on using the changeset viewer.