From 4f8dbccb1b9e4e61c4c3a62f1a0259a195130176 Mon Sep 17 00:00:00 2001 From: Micah Wood Date: Mon, 28 Oct 2024 11:38:09 -0400 Subject: [PATCH] Remove $populate_capabilities changes --- includes/Data.php | 7 ++----- includes/Flows/Flows.php | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/includes/Data.php b/includes/Data.php index de72a44..2e91f32 100644 --- a/includes/Data.php +++ b/includes/Data.php @@ -37,14 +37,11 @@ public static function runtime() { /** * Establish the brand to apply to the Onboarding experience. * - * @param bool $populate_capabilities Optional. Determines whether capabilities should be populated - * for the selected brand. Defaults to true. - * * @return array The configuration array of the current brand. If the specified brand is not found, * returns the default brand configuration. */ - public static function current_brand( $populate_capabilities = true ) { - $brands = Brands::get_brands( $populate_capabilities ); + public static function current_brand() { + $brands = Brands::get_brands(); return array_key_exists( NFD_ONBOARDING_PLUGIN_BRAND, $brands ) ? $brands[ NFD_ONBOARDING_PLUGIN_BRAND ] : diff --git a/includes/Flows/Flows.php b/includes/Flows/Flows.php index 09f3a9d..c805567 100644 --- a/includes/Flows/Flows.php +++ b/includes/Flows/Flows.php @@ -220,16 +220,13 @@ public static function get_default_flow() { /** * Retrieve all the known onboarding flows. * - * @param bool $populate_capabilities Optional. Determines whether capabilities should be populated - * for the current brand. Defaults to true. - * * @return array Associative array of onboarding flows. A value of true for each key indicates that the * flow has been approved. A value of null indicates the flow has not been approved or has * been temporarily disabled. If no enabled flows are found, default flows are provided with * a value of false. */ - public static function get_flows( $populate_capabilities = true ) { - $current_brand = Data::current_brand( $populate_capabilities ); + public static function get_flows() { + $current_brand = Data::current_brand(); return isset( $current_brand['config']['enabled_flows'] ) ? $current_brand['config']['enabled_flows'] : array( 'wp-setup' => false,