We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b68b57 commit a413f79Copy full SHA for a413f79
includes/ExternalRedirectInterceptor.php
@@ -30,17 +30,13 @@ public function wp_redirect( $location ): string {
30
$runtime_data = Data::runtime();
31
$brand_plugin_url = '';
32
33
- /*
34
- * Get the brand plugin page URL from the runtime data.
35
- */
36
- // Check if the current brand is set and is an array.
+ // Get the brand plugin page URL from the runtime data.
37
if (
38
isset( $runtime_data['currentBrand'], $runtime_data['currentBrand']['pluginDashboardPage'] ) &&
39
is_string( $runtime_data['currentBrand']['pluginDashboardPage'] )
40
- ) {
+ ) {
41
// Set the brand plugin page URL.
42
$brand_plugin_url = $runtime_data['currentBrand']['pluginDashboardPage'];
43
- }
44
}
45
46
// Redirect if the brand plugin page URL is empty.
0 commit comments