wpseek.com
A WordPress-centric search engine for devs and theme authors
default_password_nag › WordPress Function
Since2.8.0
Deprecatedn/a
› default_password_nag ( No parameters )
Defined at: |
|
Codex: |
No description yet.
Related Functions: default_password_nag_handler, default_password_nag_edit_user, wp_get_password_hint, reset_password, wp_set_password
Source
function default_password_nag() { global $pagenow; // Short-circuit it. if ( 'profile.php' === $pagenow || ! get_user_option( 'default_password_nag' ) ) { return; } ?> <div class="error default-password-nag"> <p> <strong><?php _e( 'Notice:' ); ?></strong> <?php _e( 'You’re using the auto-generated password for your account. Would you like to change it?' ); ?> </p> <p> <?php printf( '<a href="%1$s">%2$s</a> | ', esc_url( get_edit_profile_url() . '#password' ), __( 'Yes, take me to my profile page' ) ); printf( '<a href="%1$s" id="default-password-nag-no">%2$s</a>', '?default_password_nag=0', __( 'No thanks, do not remind me again' ) ); ?> </p> </div> <?php }