fix: name the WordPress revision screen for library and layout revisions (audit L3)
lit/revision-restore takes only content types, so a write to a library entry or a Theme Builder layout now answers with restore_url (wp-admin revision.php for its revision_id), also per page in lit/divi-replace-text. The guides and readme no longer present lit/revision-restore as the way back for these types. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
@@ -41,6 +41,9 @@ abstract class DiviWriteAbility implements Ability
|
||||
'affected_count' => ['type' => 'integer'],
|
||||
'hidden_count' => ['type' => 'integer'],
|
||||
'backup_id' => ['type' => 'integer'],
|
||||
// Library entries and Theme Builder layouts: their revision in WordPress' revision screen (audit L3 –
|
||||
// lit/revision-restore takes only content types).
|
||||
'restore_url' => ['type' => 'string'],
|
||||
// Theme Builder layouts: the enabled templates that show the layout – those the user may edit; the
|
||||
// others only as a count (ruling Q22).
|
||||
'templates' => ['type' => 'array', 'items' => ['type' => 'object']],
|
||||
|
||||
Reference in New Issue
Block a user