[wp-trac] [WordPress Trac] #48153: Allow the admin email verification capability to be filtered
WordPress Trac
noreply at wordpress.org
Fri Sep 27 15:40:32 UTC 2019
#48153: Allow the admin email verification capability to be filtered
------------------------------+-----------------------------
Reporter: desrosj | Owner: desrosj
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.3
Component: Site Health | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: administration
------------------------------+-----------------------------
Comment (by azaozz):
Replying to [comment:10 Clorith]:
> ...having a filter to allow granular control of the warning was not
unreasonable.
OK, lets add a direct "show/do not show" filter, after we check that the
current user has the capability to change the email. Imho that will be a
lot clearer.
With the current filter it is not clear what happens if the
`manage_options` cap is changed. Would all users that have the
other/custom cap also have `manage_options`? Would that ever change (i.e.
a user with the custom cap may stop having access to manage options)?
Perhaps a "boolean" filter, something like
`current_user_can_update_admin_email` returning `true` by default?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48153#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list