Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #31518, comment 5


Ignore:
Timestamp:
10/29/2016 09:21:02 PM (8 years ago)
Author:
johnbillion
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31518, comment 5

    v1 v2  
    77It looks like there are two further conditions inside `map_meta_cap()` which can result in the `$caps` array being empty (when a `break` statement occurs when `$caps` hasn't been populated):
    88
    9  * `(delete|edit)_(post|page}` on your own trashed post which was never published ([https://github.com/WordPress/WordPress/blob/4.3/wp-includes/capabilities.php#L1168-L1170 ref]/[https://github.com/WordPress/WordPress/blob/4.3/wp-includes/capabilities.php#L1216-L1218 ref]).
     9 * ~~`(delete|edit)_(post|page}` on your own trashed post which was never published ([https://github.com/WordPress/WordPress/blob/4.3/wp-includes/capabilities.php#L1168-L1170 ref]/[https://github.com/WordPress/WordPress/blob/4.3/wp-includes/capabilities.php#L1216-L1218 ref]).~~ Fixed in [35747].
    1010 * `(edit|delete|add)_post_meta` when an `auth_post_meta_{$meta_key}` filter is in place and returns true ([https://github.com/WordPress/WordPress/blob/4.3/wp-includes/capabilities.php#L1297-L1298 ref]).
    1111