Skip to content

Commit

Permalink
Show the Themes menu item as selected for individual themes. (#94028)
Browse files Browse the repository at this point in the history
  • Loading branch information
allilevine authored Aug 29, 2024
1 parent 8553b2a commit d769212
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/my-sites/sidebar/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,10 @@ export const itemLinkMatches = ( path, currentPath ) => {
return path.startsWith( '/stats/' );
}

// For `/theme/*` paths, show Themes menu as selected.
if ( pathIncludes( currentPath, 'theme', 1 ) ) {
return pathIncludes( path, 'themes', 1 );
}

return fragmentIsEqual( path, currentPath, 1 );
};

0 comments on commit d769212

Please sign in to comment.