Skip to content

Commit fe32722

Browse files
committed
Simplify email filter
1 parent bb0f401 commit fe32722

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Core_Command.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -574,12 +574,7 @@ function wp_new_blog_notification() {
574574
}
575575
}
576576
// WP 4.9.0 - skip "Notice of Admin Email Change" email as well (https://core.trac.wordpress.org/ticket/39117).
577-
add_filter(
578-
'send_site_admin_email_change_email',
579-
function() {
580-
return false;
581-
}
582-
);
577+
add_filter( 'send_site_admin_email_change_email', '__return_false' );
583578
}
584579

585580
require_once ABSPATH . 'wp-admin/includes/upgrade.php';

0 commit comments

Comments
 (0)