feat(css): globales CSS bearbeiten (lit/divi-custom-css-get und -update)
WordPress „Zusätzliches CSS“ (in Divi „Eigenes CSS“) über die Design-Pipeline: Probelauf mit Zeilen-Diff, design_rev, Bestätigung, Snapshot, Rollback und Wiederherstellen (Bereich custom_css). Der Guard lehnt </style, <script, expression(, javascript: und neue @import ab und warnt bei fremden Hosts; nur Neues zählt, Bestehendes blockiert keine Änderung. Erfordert edit_css und die Divi-Rolle Theme-Anpassung. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
96fa58188b
commit
ac333a164c
@@ -71,6 +71,8 @@ final class DiviToolFeaturesTest extends TestCase
|
||||
'lit/divi-variables-set' => ['design-read', 'variable-write'],
|
||||
'lit/divi-theme-options-get' => ['theme-option-read'],
|
||||
'lit/divi-theme-options-update' => ['theme-option-read', 'theme-option-write'],
|
||||
'lit/divi-custom-css-get' => ['theme-option-read'],
|
||||
'lit/divi-custom-css-update' => ['theme-option-read', 'theme-option-write'],
|
||||
'lit/divi-fonts-upload' => ['font-upload'],
|
||||
// Library (divi-library)
|
||||
'lit/library-list' => ['library-read', 'roles'],
|
||||
@@ -369,6 +371,7 @@ final class DiviToolFeaturesTest extends TestCase
|
||||
'lit/divi-presets-set' => 'preset-write', 'lit/divi-presets-delete' => 'preset-write',
|
||||
'lit/divi-colors-set' => 'color-write', 'lit/divi-variables-set' => 'variable-write',
|
||||
'lit/divi-theme-options-update' => 'theme-option-write', 'lit/divi-fonts-upload' => 'font-upload',
|
||||
'lit/divi-custom-css-update' => 'theme-option-write',
|
||||
'lit/divi-design-restore' => 'preset-write', 'lit/divi-design-detach' => 'preset-write',
|
||||
'lit/divi-presets-assign' => 'page-write', 'lit/tb-assign' => 'tb-write', 'lit/tb-activate' => 'tb-write',
|
||||
'lit/tb-create-template' => 'tb-write',
|
||||
|
||||
Reference in New Issue
Block a user