mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Coding Standards: Escape edit profile URL in default_password_nag().
Props utsav72640, mukesh27. Fixes #58182. git-svn-id: https://develop.svn.wordpress.org/trunk@55682 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
16f9d4d2f9
commit
c2bd49c91f
@ -531,7 +531,7 @@ function default_password_nag() {
|
||||
echo '<strong>' . __( 'Notice:' ) . '</strong> ';
|
||||
_e( 'You’re using the auto-generated password for your account. Would you like to change it?' );
|
||||
echo '</p><p>';
|
||||
printf( '<a href="%s">' . __( 'Yes, take me to my profile page' ) . '</a> | ', get_edit_profile_url() . '#password' );
|
||||
printf( '<a href="%s">' . __( 'Yes, take me to my profile page' ) . '</a> | ', esc_url( get_edit_profile_url() . '#password' ) );
|
||||
printf( '<a href="%s" id="default-password-nag-no">' . __( 'No thanks, do not remind me again' ) . '</a>', '?default_password_nag=0' );
|
||||
echo '</p></div>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user