Skip to content

Commit

Permalink
fix: Store Settigns apge url issue when vendor dashboard use as child…
Browse files Browse the repository at this point in the history
… page
  • Loading branch information
alamgircsebd committed Dec 7, 2020
1 parent ec2b7a7 commit 92bb455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,9 +470,9 @@ function dokan_dashboard_nav( $active_menu = '' ) {
$active_menu_parts = explode( '/', $active_menu );

if ( isset( $active_menu_parts[1] )
&& $active_menu_parts[0] == 'settings'
&& ( $active_menu_parts[1] == 'settings' || $active_menu_parts[0] == 'settings' )
&& isset( $nav_menu['settings']['sub'] )
&& array_key_exists( $active_menu_parts[1], $nav_menu['settings']['sub'] )
&& ( array_key_exists( $active_menu_parts[1], $nav_menu['settings']['sub'] ) || array_key_exists( $active_menu_parts[2], $nav_menu['settings']['sub'] ) )
) {
$urls = $nav_menu['settings']['sub'];
$active_menu = $active_menu_parts[1];
Expand Down

0 comments on commit 92bb455

Please sign in to comment.