Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
e1ad0aa
Unregister the term write abilities after each terms test
jorgefilipecosta Oct 2, 2026
b4f87c9
Add the core/term-create ability
jorgefilipecosta Oct 2, 2026
fc27bc5
Add the core/term-update ability
jorgefilipecosta Oct 2, 2026
b610a11
Add the core/term-delete ability
jorgefilipecosta Oct 2, 2026
ecfce0c
Gate the term write abilities with core/terms-query
jorgefilipecosta Oct 2, 2026
f5b8ec3
Exit early in the terms test base tearDown loop
jorgefilipecosta Oct 2, 2026
df07b58
Port the categories and tags create tests to core/term-create
jorgefilipecosta Oct 2, 2026
34d8ea1
Port the categories and tags update tests to core/term-update
jorgefilipecosta Oct 2, 2026
99770dc
Port the categories and tags delete tests to core/term-delete
jorgefilipecosta Oct 2, 2026
5a9940b
Test who may write terms in each kind of taxonomy
jorgefilipecosta Oct 2, 2026
c54c62d
Test taken names, slugs and parents on term create
jorgefilipecosta Oct 2, 2026
7131fb1
Test renames, re-parenting and guards on term update
jorgefilipecosta Oct 2, 2026
34fdf2c
Test the default category, child terms and guards on term delete
jorgefilipecosta Oct 2, 2026
4aca43c
Test fields and input checks on term create
jorgefilipecosta Oct 2, 2026
ac0b38e
Test fields and input checks on term update
jorgefilipecosta Oct 2, 2026
75c2eba
Test fields and input checks on term delete
jorgefilipecosta Oct 2, 2026
630063f
Test hidden terms and direct calls on term create
jorgefilipecosta Oct 2, 2026
55e8091
Test hidden terms and direct calls on term update
jorgefilipecosta Oct 2, 2026
0909bfe
Test hidden terms and direct calls on term delete
jorgefilipecosta Oct 2, 2026
beeae59
Test the term write abilities over the run endpoint
jorgefilipecosta Oct 2, 2026
557ac47
Test that term write inputs are endpoint arguments
jorgefilipecosta Oct 2, 2026
2eeb439
Add an e2e spec for the term write abilities
jorgefilipecosta Oct 2, 2026
0633936
Fail closed on a taxonomy guard that is not a name
jorgefilipecosta Oct 2, 2026
a6cc777
Fail closed on a term ID that is not a whole number
jorgefilipecosta Oct 2, 2026
56dd59c
Refuse a direct term create without a name cleanly
jorgefilipecosta Oct 2, 2026
878dd6e
Check the parent is kept from a real parent
jorgefilipecosta Oct 2, 2026
3bd1c3a
Test that an empty term name is refused on create
jorgefilipecosta Oct 2, 2026
2265f64
Check the e2e read after a delete is the denial
jorgefilipecosta Oct 2, 2026
f167e6f
Clean up a wrongly created duplicate in the e2e spec
jorgefilipecosta Oct 2, 2026
ff89934
Describe what the super admin tag test escapes
jorgefilipecosta Oct 2, 2026
6fe9a0b
Drop the field tests that other tests cover
jorgefilipecosta Oct 2, 2026
824ee2c
Drop the hidden taxonomy check from the create roles test
jorgefilipecosta Oct 2, 2026
6f26583
Drop the denial message check that cannot fail
jorgefilipecosta Oct 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions includes/Abilities/Gated/Terms_Query.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Gated ability: terms query.
* Gated ability: terms query, create, update, and delete.
*
* @package WordPress\AI\Abilities\Gated
*/
Expand All @@ -16,7 +16,8 @@
defined( 'ABSPATH' ) || exit;

/**
* Gates the core/terms-query ability.
* Gates the terms abilities: core/terms-query, core/term-create, core/term-update, and
* core/term-delete.
*
* @since x.x.x
*/
Expand Down
Loading
Loading