WordPress/wp-admin
Felix Arntz 45b64ba2ff Multisite: Replace unnecessary is_super_admin() check when setting up the initial network.
When using `is_super_admin()` in a non-multisite environment, the function is supposed to check for administrator capabilities. The process of querying all users and filtering them with that function can be optimized by only querying users with the administrator role instead.

Fixes #40406. See #37616.

Built from https://develop.svn.wordpress.org/trunk@40406


git-svn-id: http://core.svn.wordpress.org/trunk@40313 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-04-10 22:00:43 +00:00
..
css Customize: Auto-expand a widget area section when expanding the Widgets panel if there is only one registered sidebar and it is active. 2017-04-07 19:27:40 +00:00
images
includes Multisite: Replace unnecessary is_super_admin() check when setting up the initial network. 2017-04-10 22:00:43 +00:00
js Customize: Verify availability of history.replaceState (in IE9) before attempting to populate changeset_uuid parameter. 2017-04-10 21:15:41 +00:00
maint
network Multisite: Introduce an upgrade_network capability. 2017-04-10 21:11:43 +00:00
user
about.php About page: Remove autoplay and loop attributes on "Theme Starter Content", "Edit Shortcuts", and "Video Headers" videos, originally added as a part of [39512]. 2017-02-20 13:01:42 +00:00
admin-ajax.php
admin-footer.php Docs: Remove incorrect @param tags for admin_print_footer_scripts-{$hook_suffix} and admin_footer-{$hook_suffix} dynamic actiona. 2017-01-09 14:38:41 +00:00
admin-functions.php
admin-header.php I18n: Introduce more translator comments for strings that contain placeholders but don't have an accompanying translator comment. 2016-11-21 02:46:30 +00:00
admin-post.php
admin.php Text Changes: Add a period to the only wp_die() message that didn't have it: "Invalid plugin page". 2017-01-22 02:33:42 +00:00
async-upload.php Posts, Post Types: Use an existing string for "Invalid post type" error message. 2017-01-10 02:40:42 +00:00
comment.php Accessibility: Remove target=_blank from the comment/edit-comments help tabs links. 2016-10-04 06:54:30 +00:00
credits.php About page: Add strings for 4.7 and make available for translation. 2016-12-02 06:31:43 +00:00
custom-background.php Customize: Improve custom background properties UI. 2016-10-26 06:52:29 +00:00
custom-header.php Themes: Improve support for placeholders in default headers. 2016-11-04 17:10:01 +00:00
customize.php Customize: User get_user_locale() in customizer body class. 2017-04-05 02:16:02 +00:00
edit-comments.php General: Use interpolation instead of concatenation for all dynamic hook names. 2016-12-14 04:18:42 +00:00
edit-form-advanced.php Multisite: Remove redundant is_super_admin() when checking for edit_others_posts. 2016-12-07 22:09:42 +00:00
edit-form-comment.php Accessibility: Standardize the remove/delete/cancel links in the Menus screen and Publish meta boxes. 2016-09-17 15:39:30 +00:00
edit-link-form.php Accessibility: Remove inappropriate content from the Link Manager screens headings. 2016-12-07 20:18:46 +00:00
edit-tag-form.php Taxonomy: Improve 'Parent' label when editing taxonomy terms. 2017-03-03 02:54:42 +00:00
edit-tags.php Taxonomy: Improve 'Parent' label when editing taxonomy terms. 2017-03-03 02:54:42 +00:00
edit.php Posts, Post Types: Preserve author filter in list table after entering a page number in paging input. 2017-01-21 02:22:26 +00:00
export.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:27:33 +00:00
freedoms.php About page: Restore the double % in a printf() call which has been removed in [39420]. 2016-12-02 12:03:45 +00:00
import.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:27:33 +00:00
index.php Drop the requirement for the entry points to WordPress to be parsable by PHP4. 2016-10-25 03:15:30 +00:00
install-helper.php
install.php Login and Registration: Avoid a potentially incorrect value for the cookie hash on multisite installations that don't have a value in the siteurl network option. 2017-03-23 19:01:42 +00:00
link-add.php
link-manager.php Accessibility: Remove inappropriate content from the Link Manager screens headings. 2016-12-07 20:18:46 +00:00
link-parse-opml.php General: Check to see that the PHP-XML module is enabled before using XML functions. 2016-10-24 04:45:31 +00:00
link.php
load-scripts.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:31:29 +00:00
load-styles.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:31:29 +00:00
media-new.php Accessibility: Remove target=_blank from the help tab links on several admin screens. 2016-10-04 20:27:33 +00:00
media-upload.php Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation. 2016-08-22 18:25:31 +00:00
media.php Accessibility: Remove inappropriate content from the old Edit Media screen heading. 2016-12-07 23:30:40 +00:00
menu-header.php Administration: Ensure collapse menu is usable with a keyboard 2016-11-04 17:18:57 +00:00
menu.php Multisite: Introduce a setup_network capability for setting up multisite. 2017-04-07 12:53:45 +00:00
moderation.php
ms-admin.php
ms-delete-site.php I18N: Introduce a locale-switching function. 2016-10-26 15:36:31 +00:00
ms-edit.php
ms-options.php
ms-sites.php
ms-themes.php
ms-upgrade-network.php
ms-users.php
my-sites.php Accessibility: Remove inappropriate content from the Network screens headings. 2016-12-09 18:57:42 +00:00
nav-menus.php Customize: Prevent links to customize.php from being generated which have query vars from wp_removable_query_args() present. 2017-03-22 23:04:42 +00:00
network.php Multisite: Introduce a setup_network capability for setting up multisite. 2017-04-07 12:53:45 +00:00
options-discussion.php I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment. 2016-11-21 01:22:32 +00:00
options-general.php Multisite: Replace is_super_admin() with a proper capability check when showing a notice about WPLANG. 2017-01-24 13:13:41 +00:00
options-head.php
options-media.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:59:29 +00:00
options-permalink.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:59:29 +00:00
options-reading.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:59:29 +00:00
options-writing.php Accessibility: Remove target=_blank from the Settings screens help tabs links. 2016-10-04 06:59:29 +00:00
options.php Multisite: Replace is_super_admin() with manage_network_options in wp-admin/options.php. 2017-01-20 17:39:41 +00:00
plugin-editor.php Plugins: Correctly display the current plugin in the plugin editor. 2016-10-07 16:58:28 +00:00
plugin-install.php Accessibility: Remove inappropriate content from the Add Plugins screen heading. 2016-12-07 19:06:41 +00:00
plugins.php Plugins: Add file check to plugin deletions. 2017-03-06 12:55:41 +00:00
post-new.php
post.php Posts, Post Types: Use an existing string for "Invalid post type" error message. 2017-01-10 02:40:42 +00:00
press-this.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:31:29 +00:00
profile.php
revision.php I18n: Begin introducing translator comments for strings which include placeholders but no accompanying translator comment. 2016-11-21 01:22:32 +00:00
setup-config.php Drop the requirement for the entry points to WordPress to be parsable by PHP4. 2016-10-25 03:15:30 +00:00
term.php Taxonomy: Introduce more fine grained capabilities for managing taxonomy terms. 2016-09-30 22:40:28 +00:00
theme-editor.php Accessibility: Remove target=_blank from the Plugins, Themes, Media, Update, and Tools screens help tabs links. 2016-10-04 07:08:29 +00:00
theme-install.php I18N: Use a consistent translator comment ("accessibility text") for strings used in aria-label attributes. 2017-01-31 08:55:41 +00:00
themes.php Accessibility: Remove inappropriate content from the Themes screen heading. 2016-12-06 23:12:41 +00:00
tools.php Accessibility: Remove target=_blank from the Plugins, Themes, Media, Update, and Tools screens help tabs links. 2016-10-04 07:08:29 +00:00
update-core.php Updates: Translate plugin data on the Updates screen. 2017-01-11 10:37:48 +00:00
update.php Bootstrap: do not go gentle into that good night r38411, r38412, and parts of r38389. 2016-08-31 16:31:29 +00:00
upgrade-functions.php
upgrade.php
upload.php Accessibility: Improve the Media Library inline uploader accessibility. 2017-03-31 17:38:43 +00:00
user-edit.php Users: Display the name of user being edited on Edit User screen. 2017-01-15 07:14:39 +00:00
user-new.php Multisite: Remove unnecessary is_super_admin() check when adding an existing user to a site. 2017-01-24 12:03:43 +00:00
users.php Multisite: Replace is_super_admin() with manage_network_users when trying to change the role of oneself. 2017-01-24 11:04:44 +00:00
widgets.php Customize: Prevent links to customize.php from being generated which have query vars from wp_removable_query_args() present. 2017-03-22 23:04:42 +00:00