Skip to content

Commit 8ba5c0e

Browse files
committed
Remove delete site-link from wp-admin
1 parent 42674f0 commit 8ba5c0e

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

CHANGELOG.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
## [Unreleased]
99

1010
- TMS-1237: Add a custom Google Translate functionality to navigation
11+
- Remove delete site-link from wp-admin
1112

1213
## [1.72.0] - 2026-04-12
1314

lib/Roles.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ private function modify_admin_caps() : void {
485485
'themes.php',
486486
'customize.php',
487487
],
488+
'tools.php' => [
489+
'ms-delete-site.php',
490+
],
488491
] );
489492

490493
$role = apply_filters( 'tms/roles/admin', $role );
@@ -539,6 +542,9 @@ private function modify_editor_caps() : void {
539542
'themes.php',
540543
'customize.php',
541544
],
545+
'tools.php' => [
546+
'ms-delete-site.php',
547+
],
542548
] );
543549

544550
$role->add_caps( $this->tablepress_all_capabilities );
@@ -590,6 +596,9 @@ private function modify_author_caps() : void {
590596
'themes.php',
591597
'customize.php',
592598
],
599+
'tools.php' => [
600+
'ms-delete-site.php',
601+
],
593602
] );
594603

595604
$role->remove_caps( $this->remove_from_all );

0 commit comments

Comments
 (0)