I found a few references to edit_user
as a capability, one of which is this:
// Allow user to edit itself if ( 'edit_user' == $cap && isset( $args[0] ) && $user_id == $args[0] ) break;
http://core.trac.wordpress.org/browser/tags/3.5.2/wp-includes/capabilities.php#L1005
I believe the comment in that block of code answers this question.
Per @PatJ, it looks like map_meta_cap
converts (in a sense) edit_user
into edit_users
but only if the user attempting to edit the profile is the profile’s owner, thus allowing users who otherwise have no user edit capabilities to edit their own profile information.
Related Posts:
- Allowing Custom Capability to Manage Plugin Options
- How To Create A File Archive in WordPress?
- What are the common security flaws I need to look for? [closed]
- How can I modify the Capability needed to access a plugin’s options?
- Where should my plugin POST to?
- Add Capabilities to Custom Post Type after it has been created [duplicate]
- Security error WP 4.0 + WP phpBB Bridge [closed]
- Should I use RIPS tool to test my themes and plugins?
- Checking for user role in a custom plugin
- Allow Facebook to preview posts before published
- Escape when echoed
- Set user ID at time of wp_create_user
- Update User Role
- How to write a plugin to add users to a mail list
- How to make a customize role and view a specific plugins base on that role?
- wp_create_nonce function doesn’t work inside a plugin?
- Making a plugin only available on the front-end for the logged in super admin
- Redirection of users away from wp-admin (but not administrators)
- How to set add question capability for author role in wp pro quiz plugin
- Unable to delete custom post types, confusion around capabilities
- Can a Plugin Override New User Default Role Type
- I should enable automatic updates?
- Prevent direct access to WordPress plugin assets?
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Remove specific administrator’s capability
- How to hide plugin options for editors via functions.php
- Adding plugin editing capability for Author
- Security of a WordPress Plugin
- Help to Create a Simple Plugin to make a post
- Allow a particular user to access a particular plugin?
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- See which user role / capability is needed to use a plugin
- Securing a plugin pop-up window
- Remove dashboard links from wordpress
- Why user profile update creates Additional Capabilities
- What is more secure checking capabilities of user or checking role of user in WordPress plugin development
- Run only on plug-in activation instead of wp_head
- wp_verify_nonce fails always
- Validating values using Settings API?
- Want to add post to user dashboard
- Sync roles across several plugins
- How to disable plugin capability : “create new category”
- edit slider plugin capability for custom_role
- WordPress.Security.NonceVerification.Recommended
- coauthors_plus_edit_authors to display metabox based on author caps
- Custom Module, Extending WP with a Plugin?
- How do I remove all traces of a plugin?
- How to get values from network settings panel?
- How do I reliably find a URL to a script or other file?
- How do I profit from a Plugin?
- How to add captcha to publish widget
- Plugin privelages for “editors”
- Adding a jQuery modal dialog to the admin area
- using wp_cache in plugin
- Pluging with content for a specific page or post
- How to automatically activate users after registration without activation email?
- Creating a plugin that will display text on every page
- Plugin access and Roles
- Is the Block Bad Queries Plugin Still Relevant?
- I cannot include a file in my plugin settings page
- How to get Recent Post From Each Category with Thumbnail?
- Plugin Hook When New Author Added
- Paypal Framework
- help intercepting save_post through plugin
- unregister a sidebar widget
- WP Insert Post If user refreshes override new post
- best way to run a php script away from the template?
- Custom Post Type, Custom Columns List
- How to determine which capability to use?
- 404 errors when updating options in admin dashboard
- auto activate plugin when theme is active
- Website Captcha Error: The reCAPTCHA wasn’t entered correctly
- How to displaying Custom image, text and default image logo from Redux Framework option panel
- Should I use the action in the plugin’s main file?
- Is it possible/advisable to set last stable version to previous version?
- Hide plugins and theme from public
- How to add logo to a WordPress Custom Plugin?
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Disable Author Archive just for certain roles in bulk
- How to make sure settings are not lost when plugin is updated?
- Does WordPress do any internal caching if no plugin installed?
- Use a custom block in another block
- Seperate plugin and theme files
- WordPress Plugin- How to Insert Html&JS code in specific Page and specific Div
- Xamp installed local wordpress not allowing to publish or install plugin
- How to data add to table when update post wordpress? when we clicked!
- How to make a Product page without ordering and database
- can’t unzip file
- How Can i import plugin option?
- How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?
- wp_options not returning value for logged out users?
- Pass PHP variable to javascript
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- WordPress search shows protected content
- WordPress cron job running more than once
- Gutenberg default attributes are empty when accessing in edit
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- How can i export and import my plugin option WordPress
- How to Add text value in Automatically in this conditions?