Skip to content

Commit

Permalink
Point plugins link to wp-admin for Jetpack sites (#97092)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsl authored Dec 10, 2024
1 parent fb35cb4 commit 473af26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/sites/components/sites-dataviews/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ export function useActions( {
const wpAdminUrl = getSiteAdminUrl( site );
const adminInterface = getAdminInterface( site );
const isWpAdminInterface = adminInterface === 'wp-admin';
if ( isWpAdminInterface ) {
const isSelfHostedJetpack = isNotAtomicJetpack( site );
if ( isWpAdminInterface || isSelfHostedJetpack ) {
window.location.href = `${ wpAdminUrl }plugins.php`;
} else {
page( getPluginsUrl( site.slug ) );
Expand Down

0 comments on commit 473af26

Please sign in to comment.