File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,18 +262,30 @@ Feature: Manage super admins associated with a multisite instance
262262 And a wp-content/mu-plugins/test-hooks.php file:
263263 """
264264 <?php
265- add_action( 'grant_super_admin', static function () {
266- WP_CLI::log( 'grant_super_admin hook was fired.' );
267- });
268- add_action( 'granted_super_admin', static function () {
269- WP_CLI::log( 'granted_super_admin hook was fired.' );
270- });
271- add_action( 'revoke_super_admin', static function () {
272- WP_CLI::log( 'revoke_super_admin hook was fired.' );
273- });
274- add_action( 'revoked_super_admin', static function () {
275- WP_CLI::log( 'revoked_super_admin hook was fired.' );
276- });
265+ add_action(
266+ 'grant_super_admin',
267+ static function () {
268+ WP_CLI::log( 'grant_super_admin hook was fired.' );
269+ }
270+ );
271+ add_action(
272+ 'granted_super_admin',
273+ static function () {
274+ WP_CLI::log( 'granted_super_admin hook was fired.' );
275+ }
276+ );
277+ add_action(
278+ 'revoke_super_admin',
279+ static function () {
280+ WP_CLI::log( 'revoke_super_admin hook was fired.' );
281+ }
282+ );
283+ add_action(
284+ 'revoked_super_admin',
285+ static function () {
286+ WP_CLI::log( 'revoked_super_admin hook was fired.' );
287+ }
288+ );
277289 """
278290
279291 When I run `wp user create superadmin superadmin@example.com`
You can’t perform that action at this time.
0 commit comments