Skip to content

Commit

Permalink
Remove mu-plugin ajax handler
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Jun 29, 2022
1 parent 6fa4a96 commit 70e3289
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
'plugins_loaded',
function () {

// Unregister actions from the sso.php mu-plugin in case they exist
// This ensures that this code always takes priority for SSO handling
remove_action( 'wp_ajax_nopriv_sso-check', 'sso_check' );
remove_action( 'wp_ajax_sso-check', 'sso_check' );

register(
[
'name' => 'sso',
Expand Down

0 comments on commit 70e3289

Please sign in to comment.