Make WordPress Core

Changeset 55683


Ignore:
Timestamp:
04/24/2023 04:55:40 PM (2 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r55682 r55683  
    526526        return;
    527527    }
    528 
    529     echo '<div class="error default-password-nag">';
    530     echo '<p>';
    531     echo '<strong>' . __( 'Notice:' ) . '</strong> ';
    532     _e( 'You&rsquo;re using the auto-generated password for your account. Would you like to change it?' );
    533     echo '</p><p>';
    534     printf( '<a href="%s">' . __( 'Yes, take me to my profile page' ) . '</a> | ', esc_url( get_edit_profile_url() . '#password' ) );
    535     printf( '<a href="%s" id="default-password-nag-no">' . __( 'No thanks, do not remind me again' ) . '</a>', '?default_password_nag=0' );
    536     echo '</p></div>';
     528    ?>
     529    <div class="error default-password-nag">
     530        <p>
     531            <strong><?php _e( 'Notice:' ); ?></strong>
     532            <?php _e( 'You&rsquo;re using the auto-generated password for your account. Would you like to change it?' ); ?>
     533        </p>
     534        <p>
     535        <?php
     536        printf(
     537            '<a href="%1$s">%2$s</a> | ',
     538            esc_url( get_edit_profile_url() . '#password' ),
     539            __( 'Yes, take me to my profile page' )
     540        );
     541        printf(
     542            '<a href="%1$s" id="default-password-nag-no">%2$s</a>',
     543            '?default_password_nag=0',
     544            __( 'No thanks, do not remind me again' )
     545        );
     546        ?>
     547        </p>
     548    </div>
     549    <?php
    537550}
    538551
Note: See TracChangeset for help on using the changeset viewer.