From 49d437c945ac46dcff3bb80d7d75910c32a866b8 Mon Sep 17 00:00:00 2001 From: Anthony Grullon Date: Fri, 2 Feb 2024 11:14:27 -0500 Subject: [PATCH] Enqueue user-new styling in admin_print_styles-user-new.php hook --- projects/plugins/jetpack/modules/sso.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/projects/plugins/jetpack/modules/sso.php b/projects/plugins/jetpack/modules/sso.php index 33ef8aac48f5b..bb147383abd8c 100644 --- a/projects/plugins/jetpack/modules/sso.php +++ b/projects/plugins/jetpack/modules/sso.php @@ -91,6 +91,7 @@ private function __construct() { } add_filter( 'manage_users_columns', array( $this, 'jetpack_user_connected_th' ) ); add_action( 'admin_print_styles-users.php', array( $this, 'jetpack_user_table_styles' ) ); + add_action( 'admin_print_styles-user-new.php', array( $this, 'jetpack_user_new_form_styles' ) ); add_action( 'manage_users_custom_column', array( $this, 'jetpack_show_connection_status' ), 10, 3 ); add_action( 'admin_post_jetpack_invite_user_to_wpcom', array( $this, 'invite_user_to_wpcom' ) ); add_action( 'admin_post_jetpack_revoke_invite_user_to_wpcom', array( $this, 'revoke_user_invite_to_wpcom' ) ); @@ -340,9 +341,6 @@ public function jetpack_user_table_row_actions( $actions, $user_object ) { * Render the invitation email message. */ public function render_invitation_email_message() { - // Enqueue the CSS for the admin create user page. - wp_enqueue_style( 'jetpack-sso-admin-create-user', plugins_url( 'modules/sso/jetpack-sso-admin-create-user.css', JETPACK__PLUGIN_FILE ), array(), time() ); - $message = wp_kses( __( 'New users will receive an invite to join WordPress.com, so they can log in securely using Secure Sign On.', @@ -597,6 +595,14 @@ public function jetpack_user_table_styles() {