Skip to content

Commit 7b68b57

Browse files
wpalaniwpscholar
andauthored
Update includes/ExternalRedirectInterceptor.php
Co-authored-by: Micah Wood <[email protected]>
1 parent 4d75d41 commit 7b68b57

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

includes/ExternalRedirectInterceptor.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,8 @@ public function wp_redirect( $location ): string {
3535
*/
3636
// Check if the current brand is set and is an array.
3737
if (
38-
isset( $runtime_data['currentBrand'] ) &&
39-
is_array( $runtime_data['currentBrand'] )
40-
) {
41-
// Check if the pluginDashboardPage key is set and is a string.
42-
if (
43-
isset( $runtime_data['currentBrand']['pluginDashboardPage'] ) &&
44-
is_string( $runtime_data['currentBrand']['pluginDashboardPage'] )
38+
isset( $runtime_data['currentBrand'], $runtime_data['currentBrand']['pluginDashboardPage'] ) &&
39+
is_string( $runtime_data['currentBrand']['pluginDashboardPage'] )
4540
) {
4641
// Set the brand plugin page URL.
4742
$brand_plugin_url = $runtime_data['currentBrand']['pluginDashboardPage'];

0 commit comments

Comments
 (0)