Skip to content

Commit 8b6244e

Browse files
committed
Pass accepted_args=0 for provider_registered invalidation hook
reset_connection_status() takes no parameters; explicitly pass 0 accepted_args so WordPress does not forward the provider argument. Made-with: Cursor
1 parent ed6b09a commit 8b6244e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

projects/packages/connection/src/class-manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ private function add_connection_status_invalidation_hooks() {
213213
add_action( 'pre_update_jetpack_option_master_user', array( $this, 'reset_connection_status' ) );
214214
// phpcs:ignore WPCUT.SwitchBlog.SwitchBlog -- wpcom flags **every** use of switch_blog, apparently expecting valid instances to ignore or suppress the sniff.
215215
add_action( 'switch_blog', array( $this, 'reset_connection_status' ) );
216-
add_action( 'jetpack_external_storage_provider_registered', array( $this, 'reset_connection_status' ) );
216+
add_action( 'jetpack_external_storage_provider_registered', array( $this, 'reset_connection_status' ), 10, 0 );
217217

218218
self::$connection_invalidators_added = true;
219219
}

0 commit comments

Comments
 (0)