[wp-trac] [WordPress Trac] #26365: map_meta_cap() should use parent post status when post has a post status of inherit

WordPress Trac noreply at wordpress.org
Thu Jun 18 23:41:44 UTC 2015


#26365: map_meta_cap() should use parent post status when post has a post status of
inherit
----------------------------------------+------------------------------
 Reporter:  methnen                     |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Role/Capability             |     Version:  3.8
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by methnen):

 @stevenkword I'm fairly sure that's only the case in the second post.php
 patch.

 map_meta_cap does not ever call on `get_post_status` and thus still needs
 to be fixed in order to properly support 'inherit' on custom post types.

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


More information about the wp-trac mailing list