phpDoc for ms-deprecated.php props nacin.
Make generate_random_password use wp_generate_password() Fixes #11746. git-svn-id: https://develop.svn.wordpress.org/trunk@12635 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
74ae03486d
commit
471ccb4fac
@ -1,10 +1,26 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Deprecated functions from WordPress MU and the multisite feature. You shouldn't
|
||||||
|
* use these functions and look for the alternatives instead. The functions will be
|
||||||
|
* removed in a later version.
|
||||||
|
*
|
||||||
|
* @package WordPress
|
||||||
|
* @subpackage Deprecated
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Deprecated functions come here to die.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since unknown
|
||||||
|
* @deprecated 3.0
|
||||||
|
* @deprecated Use wp_generate_password()
|
||||||
|
* @see wp_generate_password()
|
||||||
|
*/
|
||||||
function generate_random_password( $len = 8 ) {
|
function generate_random_password( $len = 8 ) {
|
||||||
_deprecated_function( __FUNCTION__, '3.0', 'wp_generarte_password()' );
|
_deprecated_function( __FUNCTION__, '3.0', 'wp_generate_password()' );
|
||||||
$random_password = substr(md5(uniqid(microtime())), 0, intval( $len ) );
|
return wp_generate_password($len);
|
||||||
$random_password = apply_filters('random_password', $random_password);
|
|
||||||
return $random_password;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user