[wp-trac] [WordPress Trac] #14520: Introduce edit_comment meta cap

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 29 14:16:11 UTC 2011


#14520: Introduce edit_comment meta cap
------------------------------+---------------------
 Reporter:  scribu            |       Owner:
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  3.1
Component:  Comments          |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------

Comment (by dd32):

 Replying to [comment:13 nestor_at_mash]:
 > Hi all,
 > The edit_comment capability has not been defined on wp-
 admin\includes\schema.php

 The edit_comment cap is a '''meta capability''' that is, a capability
 which maps to other '''real''' capabilities, it's really just an
 conditional alias: [http://core.trac.wordpress.org/changeset/15596/trunk
 /wp-includes/capabilities.php the magic happens here] where it's mapped to
 the Post Type's Edit capability.

 So; you should never see a user with the 'edit_comment' cap specifically,
 but you will have users who it passes as true for since behind the scenes
 it maps to another real capability which they do have.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14520#comment:14>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list