From a87ddcbaddb64b57f13b9c03cf50b58637800f6c Mon Sep 17 00:00:00 2001 From: Grant Mangham Date: Mon, 23 Oct 2023 15:15:28 -0700 Subject: [PATCH] clean admin bar --- src/alley/wp/alleyvate/features/class-clean-admin-bar.php | 2 -- src/alley/wp/alleyvate/load.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/alley/wp/alleyvate/features/class-clean-admin-bar.php b/src/alley/wp/alleyvate/features/class-clean-admin-bar.php index 6e7b917c..ca4d342f 100644 --- a/src/alley/wp/alleyvate/features/class-clean-admin-bar.php +++ b/src/alley/wp/alleyvate/features/class-clean-admin-bar.php @@ -48,8 +48,6 @@ public function before_admin_bar_render() { public function get_disposable_nodes() { $disposable_nodes = [ 'comments', - //'customize', - //'notes', 'themes', ]; diff --git a/src/alley/wp/alleyvate/load.php b/src/alley/wp/alleyvate/load.php index 66d1f1b8..a0430128 100644 --- a/src/alley/wp/alleyvate/load.php +++ b/src/alley/wp/alleyvate/load.php @@ -28,7 +28,7 @@ function load(): void { */ $features = [ 'clean_admin_bar' => new Features\Clean_Admin_Bar(), - //'disable_comments' => new Features\Disable_Comments(), + 'disable_comments' => new Features\Disable_Comments(), 'disable_dashboard_widgets' => new Features\Disable_Dashboard_Widgets(), 'disable_sticky_posts' => new Features\Disable_Sticky_Posts(), 'disable_trackbacks' => new Features\Disable_Trackbacks(),