Changes between Version 1 and Version 2 of Ticket #31518, comment 5
- Timestamp:
- 10/29/2016 09:21:02 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31518, comment 5
v1 v2 7 7 It 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): 8 8 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]. 10 10 * `(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]). 11 11