Make WordPress Core


Ignore:
Timestamp:
09/18/2015 08:13:34 PM (11 years ago)
Author:
wonderboymusic
Message:

Profile: when clicking "Cancel" after clicking "Generate Password", request and generate a new password to present to the user.

Props adamsilverstein, wonderboymusic.
Fixes #33450.

File:
1 edited

Legend:

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

    r34305 r34312  
    32043204    wp_send_json_success( wp_prepare_attachment_for_js( $attachment_id ) );
    32053205}
     3206
     3207/**
     3208 * Generates a password via ajax.
     3209 *
     3210 * @since 4.3.1
     3211 */
     3212function wp_ajax_generate_password() {
     3213    wp_send_json_success( wp_generate_password( 24 ) );
     3214}
Note: See TracChangeset for help on using the changeset viewer.