[wp-trac] [WordPress Trac] #58312: Display password hint on additional screens
WordPress Trac
noreply at wordpress.org
Mon May 15 22:06:44 UTC 2023
#58312: Display password hint on additional screens
----------------------------+------------------------------
Reporter: petitphp | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
----------------------------+------------------------------
Comment (by petitphp):
Hi @SergeyBiryukov
Thanks for looking up history for the function.
>Interesting, wp_get_password_hint() was initially used on all of these
screens, but somehow got
>phased out as part of UI updates. If I had to guess, it was probably to
clean up the UI, as the
>password is now autogenerated by default, and it can be up for discussion
if the hint is still
>relevant in that case.
I can see why this could be the case. However, without them, it's really
hard to display any kind of info to the user about custom validation rules
that could exist (mainly in the enterprise context). Currently, the way it
can be done is using JS to inject password hint dynamically.
I totally get your point about keeping a clean UI, I'm thinking we could
add a new filter to choose if the hint should be shown ?
{{{#!php
if ( apply_filter( 'show_password_hint', false ) ) {
//...
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58312#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list