Make WordPress Core


Ignore:
Timestamp:
02/25/2014 05:07:22 PM (11 years ago)
Author:
nacin
Message:

Make the user arguments for get_edit_profile_url() and get_dashboard_url() optional, defaulting to the current user.

props garyc40.
fixes #16686.

File:
1 edited

Legend:

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

    r26868 r27260  
    421421    _e('You’re using the auto-generated password for your account. Would you like to change it to something easier to remember?');
    422422    echo '</p><p>';
    423     printf( '<a href="%s">' . __('Yes, take me to my profile page') . '</a> | ', get_edit_profile_url( get_current_user_id() ) . '#password' );
     423    printf( '<a href="%s">' . __('Yes, take me to my profile page') . '</a> | ', get_edit_profile_url() . '#password' );
    424424    printf( '<a href="%s" id="default-password-nag-no">' . __('No thanks, do not remind me again') . '</a>', '?default_password_nag=0' );
    425425    echo '</p></div>';
Note: See TracChangeset for help on using the changeset viewer.