[wp-trac] [WordPress Trac] #23226: Always use meta caps directly instead of going through the post_type_object->caps array
WordPress Trac
noreply at wordpress.org
Fri Jan 18 05:35:27 UTC 2013
#23226: Always use meta caps directly instead of going through the
post_type_object->caps array
-------------------------------------+--------------------------
Reporter: markjaquith | Owner: markjaquith
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 3.6
Component: Role/Capability | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------
Changes (by markjaquith):
* keywords: => has-patch needs-testing
* owner: => markjaquith
* status: new => accepted
Comment:
First swing. Passes existing unit tests. Where possible, I removed the
associated `get_post_type_object()` call — that is, if it was only being
used in the cap check. I could probably use a double-check where that
happened.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23226#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list