From bfdb1adc6aa492a326005af1bb44f1a55c8e9a9f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 24 Apr 2023 16:55:40 +0000 Subject: [PATCH] Coding Standards: Update code layout in `default_password_nag()` for readability. This aims to better match similar fragments in other core functions. Follow-up to [11162], [13844], [14170], [55682]. See #57839. git-svn-id: https://develop.svn.wordpress.org/trunk@55683 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/user.php | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php index 6780824de8..8b82c48089 100644 --- a/src/wp-admin/includes/user.php +++ b/src/wp-admin/includes/user.php @@ -525,15 +525,28 @@ function default_password_nag() { if ( 'profile.php' === $pagenow || ! get_user_option( 'default_password_nag' ) ) { return; } - - echo '
'; - echo '

'; - echo '' . __( 'Notice:' ) . ' '; - _e( 'You’re using the auto-generated password for your account. Would you like to change it?' ); - echo '

'; - printf( '' . __( 'Yes, take me to my profile page' ) . ' | ', esc_url( get_edit_profile_url() . '#password' ) ); - printf( '' . __( 'No thanks, do not remind me again' ) . '', '?default_password_nag=0' ); - echo '

'; + ?> +
+

+ + +

+

+ %2$s | ', + esc_url( get_edit_profile_url() . '#password' ), + __( 'Yes, take me to my profile page' ) + ); + printf( + '%2$s', + '?default_password_nag=0', + __( 'No thanks, do not remind me again' ) + ); + ?> +

+
+