WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/26/2014 08:37:36 PM (6 years ago)
Author:
DrewAPicture
Message:

Fix DocBlock formatting for wp_generate_password().

Props stevegrunwell for the initial patch.
Fixes #30509.

File:
1 edited

Legend:

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

    r30576 r30580  
    19761976 * @since 2.5.0
    19771977 *
    1978  * @param int $length The length of password to generate
    1979  * @param bool $special_chars Whether to include standard special characters. Default true.
    1980  * @param bool $extra_special_chars Whether to include other special characters. Used when
    1981  *   generating secret keys and salts. Default false.
    1982  * @return string The random password
    1983  **/
     1978 * @param int  $length              Optional. The length of password to generate. Default 12.
     1979 * @param bool $special_chars       Optional. Whether to include standard special characters.
     1980 *                                  Default true.
     1981 * @param bool $extra_special_chars Optional. Whether to include other special characters.
     1982 *                                  Used when generating secret keys and salts. Default false.
     1983 * @return string The random password.
     1984 */
    19841985function wp_generate_password( $length = 12, $special_chars = true, $extra_special_chars = false ) {
    19851986    $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
Note: See TracChangeset for help on using the changeset viewer.