Make WordPress Core


Ignore:
Timestamp:
10/18/2014 08:20:56 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Move password hint text to a function. Add 'password_hint' filter.

props convissor.
fixes #21243.

File:
1 edited

Legend:

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

    r29934 r29962  
    20722072
    20732073/**
     2074 * Gets the text suggesting how to create strong passwords.
     2075 *
     2076 * @since 4.1.0
     2077 * @access private
     2078 *
     2079 * @return string The password hint text.
     2080 */
     2081function _wp_password_hint() {
     2082    $hint = __( 'Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).' );
     2083
     2084    /**
     2085     * Filter the text describing the site's password complexity policy.
     2086     *
     2087     * @since 4.1.0
     2088     *
     2089     * @param string $hint The password hint text.
     2090     */
     2091    return apply_filters( 'password_hint', $hint );
     2092}
     2093
     2094/**
    20742095 * Retrieves a user row based on password reset key and login
    20752096 *
Note: See TracChangeset for help on using the changeset viewer.