WordPress.org

Make WordPress Core

Changeset 12635


Ignore:
Timestamp:
01/07/2010 07:32:44 AM (10 years ago)
Author:
westi
Message:

phpDoc for ms-deprecated.php props nacin.
Make generate_random_password use wp_generate_password()
Fixes #11746.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-deprecated.php

    r12624 r12635  
    11<?php
     2/**
     3 * Deprecated functions from WordPress MU and the multisite feature. You shouldn't
     4 * use these functions and look for the alternatives instead. The functions will be
     5 * removed in a later version.
     6 *
     7 * @package WordPress
     8 * @subpackage Deprecated
     9 */
    210
     11/*
     12 * Deprecated functions come here to die.
     13 */
     14 
     15/**
     16 * @since unknown
     17 * @deprecated 3.0
     18 * @deprecated Use wp_generate_password()
     19 * @see wp_generate_password()
     20 */
    321function generate_random_password( $len = 8 ) {
    4     _deprecated_function( __FUNCTION__, '3.0', 'wp_generarte_password()' );
    5     $random_password = substr(md5(uniqid(microtime())), 0, intval( $len ) );
    6     $random_password = apply_filters('random_password', $random_password);
    7     return $random_password;
     22    _deprecated_function( __FUNCTION__, '3.0', 'wp_generate_password()' );
     23    return wp_generate_password($len);
    824}
    925
Note: See TracChangeset for help on using the changeset viewer.