[wp-trac] [WordPress Trac] #35614: Cannot check capabilities on single taxonomy terms
WordPress Trac
noreply at wordpress.org
Tue Sep 27 18:17:47 UTC 2016
#35614: Cannot check capabilities on single taxonomy terms
---------------------------------------------+--------------------------
Reporter: johnjamesjacoby | Owner: johnbillion
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+--------------------------
Changes (by johnjamesjacoby):
* keywords: has-patch needs-testing has-unit-tests => has-patch has-unit-
tests commit
Comment:
Replying to [comment:12 johnbillion]:
> @johnjamesjacoby It would be great if you could test this by attempting
to implement your edit/delete locking functionality with the patch
applied. I've been testing using various filters on the `map_meta_cap`
filter (my use-case is preventing edits to a term that's marked as pending
approval by an administrator).
@johnbillion Patch still applies cleanly, and looks good to my eyes.
I especially like moving the default-term-check to `map_meta_cap()` --
great work.
Tests are passing, and I walked through vanilla WordPress functionality &
everything works the same as before.
Recommend to commit when ready.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35614#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list