Wordpress/src/wp-admin
Jeremy Felt 4958dd8998 Avoid clearing stored capabilities for a user when removing their built in role in multisite.
Previously, if “No role on this site” was assigned to a user AND that user did not have an empty role array stored for the site, the `$blog_prefix . ‘capabilities’` meta for that user would be deleted completely after changes to the user were saved. Any custom capabilities stored (i.e. `$user->add_role()`) would be removed as well.

This removes the code controlling the old WPMU handling of “no role” and allows custom stored capabilities to remain. Users with no role and custom capabilities will now appear in the users list table with “None” as the role.

In the process we’re able to better clarify the multisite specific pieces that do occur.

Props PeteMall, jeremyfelt.

Fixes #18934.


git-svn-id: https://develop.svn.wordpress.org/trunk@31516 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-23 01:33:11 +00:00
..
css Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:47:30 +00:00
images TwentyFifteen: 2014-11-25 06:11:02 +00:00
includes Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:47:30 +00:00
js Delegate focusin and focusout events for row actions to make sure the actions are always revealed on focus. 2015-02-22 20:13:31 +00:00
maint Remove the WordPress logo from the focusable elements on the install/update screens. Fixes #28674. Props stompweb 2014-06-29 14:09:39 +00:00
network In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
user Ensure the requires for the admin bootstrap are documented in all wp-admin/user/ files. 2014-11-04 16:31:31 +00:00
about.php Use correct closing tag for "Under the Hood" header on About screen. 2015-02-22 16:43:44 +00:00
admin-ajax.php Shiny Updates: Add ajax-y updates to the plugin list page, and ajax-y updates and installs to the plugin card page. 2015-02-05 04:18:57 +00:00
admin-footer.php Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/*. 2014-11-30 11:42:00 +00:00
admin-functions.php
admin-header.php Add a blank line preceding a Markdown-formatted ordered list in the DocBlock for the admin_body_class filter. 2014-12-06 23:20:12 +00:00
admin-post.php Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/*. 2014-11-30 11:42:00 +00:00
admin.php Avoid confusion by clarifying an inline comment on logic for performing multisite upgrades. 2015-01-29 11:52:55 +00:00
async-upload.php Prevent IE9 and lower displaying the download file dialogue when attempting to upload using the html4 Plupload handler. 2015-02-12 01:14:47 +00:00
comment.php Declare $action as a global in wp-admin/comment.php. 2015-01-10 20:41:04 +00:00
credits.php About page, text only (not released for translation), first pass. 2014-12-11 10:15:14 +00:00
custom-background.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
custom-header.php In Custom_Image_Header: 2015-01-10 22:10:02 +00:00
customize.php Fix typo in [30760]. 2015-02-20 17:08:32 +00:00
edit-comments.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
edit-form-advanced.php In edit-form-advanced.php: 2015-01-10 21:20:01 +00:00
edit-form-comment.php Pass comment author name and comment ID to 'get_comment_author_link' filter on Edit Comment screen, for consistency with [30092]. 2015-01-05 19:09:36 +00:00
edit-link-form.php In edit-link-form.php, hackificator bails because there is a </form> with no open <form>. It exists, but is needlessly constructed with PHP. It always returns a <form>, only the id and name are different. The dynamic piece just returns the ID now. 2014-05-18 22:06:22 +00:00
edit-tag-form.php Apply 'taxonomy_parent_dropdown_args' filter when editing terms. 2014-12-29 15:26:51 +00:00
edit-tags.php Remove inaccurate part of {$taxonomy}_add_form_fields action description. 2015-01-19 15:30:09 +00:00
edit.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
export.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
freedoms.php About page, text only (not released for translation), first pass. 2014-12-11 10:15:14 +00:00
import.php List tables: Use CSS :nth-child() selectors for zebra striping. 2015-01-14 22:13:03 +00:00
index.php Ensure inline code is markdown-escaped as such, HTML tags are removed from summaries, and that code snippets in descriptions are properly indented. 2014-11-24 05:38:44 +00:00
install-helper.php Ensure inline code is markdown-escaped as such, HTML tags are removed from summaries, and that code snippets in descriptions are properly indented. 2014-11-24 05:46:04 +00:00
install.php Remove duplicate label on installation screen. 2015-01-25 19:38:04 +00:00
link-add.php
link-manager.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
link-parse-opml.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:13:53 +00:00
link.php Fix syntax for single- and multi-line comments in wp-admin-directory files. 2014-07-17 09:13:53 +00:00
load-scripts.php When outputting JS with a Content-Type header: 2015-01-03 02:56:14 +00:00
load-styles.php Simplify the setup-config.php UI flow and load process. 2014-07-03 19:56:37 +00:00
media-new.php
media-upload.php Remove an extra indent from most of media-new.php. 2015-02-03 07:46:21 +00:00
media.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
menu-header.php In _wp_menu_output(), $submenu_items is an array and should be initialized as such. 2015-02-07 17:56:18 +00:00
menu.php Escape Customizer links in the admin menu. Fix usage of add_query_arg(). 2015-02-11 22:47:44 +00:00
moderation.php
ms-admin.php
ms-delete-site.php Replace generic "Dear user" greeting in email notifications with a more personalized one. 2015-02-10 07:46:50 +00:00
ms-edit.php
ms-options.php
ms-sites.php
ms-themes.php
ms-upgrade-network.php
ms-users.php
my-sites.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
nav-menus.php Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:47:30 +00:00
network.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
options-discussion.php Collapse additional avatar settings if avatars are disabled. 2015-01-08 17:00:15 +00:00
options-general.php Declare $wp_version, $required_php_version, and $required_mysql_version as globals in install and upgrade admin files. 2015-01-10 05:56:45 +00:00
options-head.php
options-media.php
options-permalink.php The keyword elseif should be used instead of else if so that all control keywords look like single words. 2015-01-08 07:04:40 +00:00
options-reading.php Inline <script>s that are only printed in the admin for pages that are served with the HTML5 doctype absolutely do not need CDATA comments. 2015-01-03 05:45:17 +00:00
options-writing.php Priority fixes for various existing hook documentation. 2014-04-12 00:00:32 +00:00
options.php Switch to a 403 response code in places where it is more appropriate than a 500 due to permissions errors. 2014-11-16 06:15:29 +00:00
plugin-editor.php In wp-admin/plugin-editor.php, break is unreachabled after exit. 2014-05-06 18:11:30 +00:00
plugin-install.php Shiny Updates: Add ajax-y updates to the plugin list page, and ajax-y updates and installs to the plugin card page. 2015-02-05 04:18:57 +00:00
plugins.php Shiny Updates: Add ajax-y updates to the plugin list page, and ajax-y updates and installs to the plugin card page. 2015-02-05 04:18:57 +00:00
post-new.php Admin globals: 2015-01-10 05:28:46 +00:00
post.php Admin globals: 2015-01-10 05:28:46 +00:00
press-this.php Inline <script>s that are only printed in the admin for pages that are served with the HTML5 doctype absolutely do not need CDATA comments. 2015-01-03 05:45:17 +00:00
profile.php
revision.php Add a single responsibility function for outputting Revisions JS templates: wp_print_revision_templates(). 2014-11-01 00:14:45 +00:00
setup-config.php WPDB: If a site is using the utf8 charset, and their version of MySQL supports utf8mb4, auto-upgrade them to utf8mb4. 2015-02-06 04:50:19 +00:00
theme-editor.php Inline <script>s that are only printed in the admin for pages that are served with the HTML5 doctype absolutely do not need CDATA comments. 2015-01-03 05:45:17 +00:00
theme-install.php Themes: Add feedback for screen readers when search results are changed. 2015-02-22 10:14:45 +00:00
themes.php Themes: Add feedback for screen readers when search results are changed. 2015-02-22 10:14:45 +00:00
tools.php
update-core.php Improve table footer tab sequence by moving <tfoot> after <tbody>. Props afercia, rianrietveld, DrewAPicture. Fixes #30914. 2015-02-22 21:47:30 +00:00
update.php Docs Formatting: Backtick-escape inline code for all dynamic hook docs in wp-admin/*. 2014-11-30 11:42:00 +00:00
upgrade-functions.php
upgrade.php Declare $wp_version, $required_php_version, and $required_mysql_version as globals in install and upgrade admin files. 2015-01-10 05:56:45 +00:00
upload.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
user-edit.php Avoid clearing stored capabilities for a user when removing their built in role in multisite. 2015-02-23 01:33:11 +00:00
user-new.php Add New User: Remove trailing whitespace from button labels. 2015-01-29 14:53:05 +00:00
users.php In HTML5, the action attribute is no longer required. Remove this attribute when empty. 2015-01-16 04:15:52 +00:00
widgets.php Widgets: Add return param for widgets admin page to the "Manage in Customizer" link. 2015-02-11 20:56:21 +00:00