[wp-trac] [WordPress Trac] #40197: meta cap 'publish_post' is not being used

WordPress Trac noreply at wordpress.org
Sat Dec 12 04:19:51 UTC 2020


#40197: meta cap 'publish_post' is not being used
--------------------------------------+------------------------------
 Reporter:  panjmp                    |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Role/Capability           |     Version:  3.5
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  administration
--------------------------------------+------------------------------

Comment (by manfcarlo):

 > 2. The `publish_post` meta capability now respects
 `$args['map_meta_cap'] = false` and does not map, previously it was
 mapping anyway.

 I would guess that last unit test is failing because of this? If a post
 type has `$args['map_meta_cap'] = false` then it should be responsible to
 map `publish_post`. Obviously this risks breaking many post types, but I
 would say they are taking on that risk by setting `$args['map_meta_cap'] =
 false`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40197#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list