Skip to content

Commit

Permalink
WPCOMSH: Remove redirection from /wp-admin/plugin.php to /plugins/man…
Browse files Browse the repository at this point in the history
…age/<site> (#39615)

* remove redirection

* changelog
  • Loading branch information
okmttdhr authored Oct 4, 2024
1 parent b68a7f4 commit 7a2a5d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/wpcomsh/changelog/test-redirect
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: removed

test remove redirection
5 changes: 0 additions & 5 deletions projects/plugins/wpcomsh/feature-plugins/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,6 @@ function wpcomsh_maybe_redirect_to_calypso_plugin_pages() {
wp_safe_redirect( 'https://wordpress.com/plugins/' . $site );
exit;
}

if ( 0 === strpos( $request_uri, '/wp-admin/plugins.php' ) ) {
wp_safe_redirect( 'https://wordpress.com/plugins/manage/' . $site );
exit;
}
}
add_action( 'plugins_loaded', 'wpcomsh_maybe_redirect_to_calypso_plugin_pages' );

Expand Down

0 comments on commit 7a2a5d6

Please sign in to comment.