Skip to content

Commit 308e17c

Browse files
committed
Update capability for amp_validation_error taxonomy
1 parent 6e9f2cf commit 308e17c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

includes/validation/class-amp-validation-error-taxonomy.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,9 @@ public static function register() {
283283
'manage_terms' => AMP_Validation_Manager::VALIDATE_CAPABILITY, // Needed to give access to the term list table.
284284
'delete_terms' => AMP_Validation_Manager::VALIDATE_CAPABILITY, // Needed so the checkbox (cb) table column will work.
285285
'assign_terms' => 'do_not_allow', // Block assign_terms since associating terms with posts is done programmatically.
286-
'edit_terms' => 'do_not_allow', // Terms are created (and updated) programmatically.
286+
// Terms are created (and updated) programmatically, but we still need to assign capabilities while generating edit link for term.
287+
// @see <https://github.com/ampproject/amp-wp/issues/7604#issuecomment-1704244763>.
288+
'edit_terms' => AMP_Validation_Manager::VALIDATE_CAPABILITY,
287289
],
288290
]
289291
);

0 commit comments

Comments
 (0)