[wp-trac] [WordPress Trac] #37616: Replace `is_super_admin()` calls with real capability checks
WordPress Trac
noreply at wordpress.org
Fri Mar 17 14:35:10 UTC 2017
#37616: Replace `is_super_admin()` calls with real capability checks
-----------------------------+------------------------
Reporter: flixos90 | Owner:
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 4.8
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite
-----------------------------+------------------------
Comment (by flixos90):
In [changeset:"40295"]:
{{{
#!CommitTicketReference repository="" revision="40295"
Multisite: Remove restriction of minimum site name length in
`wpmu_validate_blog_signup()`.
It is sometimes desirable to support shorter site names than 4 characters,
therefore that restriction should be removed. It is still possible to
manually enforce it by using the `wpmu_validate_blog_signup` filter.
As a result of this change, another `is_super_admin()` call gets removed
which affects the ongoing efforts of working on a network-wide role
system.
Props milindmore22.
Fixes #39676. See #37616.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37616#comment:58>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list