From 3108b658f58474b24aca398c9e43dfd13862bb59 Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Tue, 10 Sep 2024 15:38:12 -0700 Subject: [PATCH] Change `protected` to `public` for `::all()` used by `Runtime` --- includes/SiteCapabilities.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/SiteCapabilities.php b/includes/SiteCapabilities.php index b30dabc..9f01a1a 100644 --- a/includes/SiteCapabilities.php +++ b/includes/SiteCapabilities.php @@ -47,8 +47,10 @@ public function get( string $capability ): bool { /** * Get all capabilities. + * + * @used-by \NewfoldLabs\WP\Module\Runtime\Runtime::prepareRuntime() */ - protected function all(): array { + public function all(): array { $capabilities = $this->transient->get( 'nfd_site_capabilities' ); if ( false === $capabilities ) { $capabilities = $this->fetch();