Skip to content

Commit

Permalink
Change protected to public for ::all() used by Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Sep 10, 2024
1 parent bc19a1a commit 3108b65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/SiteCapabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3108b65

Please sign in to comment.