[wp-trac] [WordPress Trac] #21243: move password hint text to a function

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 12 16:56:25 UTC 2012


#21243: move password hint text to a function
-------------------------+-----------------------------
 Reporter:  convissor    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 The password hint text, noted below, is hard coded in four places:

 {{{
 wp-admin/install.php
 wp-admin/user-edit.php
 wp-admin/user-new.php
 wp-login.php
 }}}

 {{{
 Hint: The password should be at least seven characters long. To make it
 stronger, use upper and lower case letters, numbers and symbols like ! " ?
 $ % ^ & ).
 }}}

 This approach is prone to mistakes when changes are made.  In addition,
 plugins that want to override the text need to use the resource intensive
 and clumsy gettext filter.

 Per nacin and westi, the attached patch moves the text to a function
 ({{{wp_password_hint()}}}) in {{{wp-includes/user.php}}} and adds a filter
 ({{{password_hint}}}).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21243>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list