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
- What security concerns should I have when setting FS_METHOD to “direct” in wp-config?
- What’s the preferred method of writing AJAX-enabled plugins?
- How to add a shortcode button to the TinyMCE editor?
- Is there any record of installed plugins in the database?
- Using require_once in a Plugin?
- How do I check if my $wpdb->insert() was successful?
- Creating a theme option page?
- Add post thumbnail from external image with plugin
- How to allow Unfiltered HTML in a wordpress multisite install
- Where is the source code that makes the “all” array grabs filters in the $wp_filter?
- Options page not displayed under Settings menu
- How can I change plugin to give access to editor user role?
- Is it possible to add an action to the currently running action?
- How to include and use custom class files in plugin?
- Action on post publish
- OOP: Display warning and deactivate the plugin if PHP version is less than 5.4
- Only execute jQuery function(on document ready) on the page has shortcode from plugin [duplicate]
- unzip a folder on specific location and delete the zip file
- Changing labels of status filters for post grid
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Plugin version is not showing up in wordpress.org plugin directory
- wordpress plugin is not activating from widget
- uninstall.php file in Plugin to clean DB
- How to get specific setting by settings_fields()?
- Filter custom posts based on the user role of author
- Save / Show multi line text in metabox
- Best way to initiate a class in a WP plugin?
- How to create a child/addon plugin
- How to secure the release of WordPress plugins / avoid copying plugins?
- add_filter doesn’t work
- how to force tag page layout to use same as search layout?
- Delay JavaScript files from loading
- Run function on plugin activation before plugin is loaded
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- Why is it important to check for isset and is_array before checking in_array in this example?
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- How to call external functions from a PHP script in a WordPress plugin?
- Don’t load the theme for a page FROM a plugin EDITED
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- How to add custom function to pluggable.php
- How to get Recent Post From Each Category with Thumbnail?
- Remove Zero Money From Previews Order woocommerce
- How use wp_insert_post and add og:custom tags?
- Access remote SFTP server via WordPress login?
- how to create user profile pages and display them based on users roles
- How to change “Read More” text?
- How to use wp_editor and save its data in wp_posts table
- My WordPress activation hook isn’t working
- Public WP website with one area just for members
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Echo custom admin field into a is_single()
- Exclude specifed files from plugin editor
- Jquery post responses 500 error after some time and lastly an 503 error
- How can I delete the options from DB when the plugin is deleted?
- public custom posts not showing in my wordpress plugin