| 1 | Index: wp-includes/ms-deprecated.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/ms-deprecated.php (revision 12626) |
|---|
| 4 | +++ wp-includes/ms-deprecated.php (working copy) |
|---|
| 5 | @@ -1,9 +1,27 @@ |
|---|
| 6 | <?php |
|---|
| 7 | +/** |
|---|
| 8 | + * Deprecated multisite functions from WordPress MU and past WordPress versions. You |
|---|
| 9 | + * shouldn't use these functions and look for the alternatives instead. The functions |
|---|
| 10 | + * will be removed in a later version. |
|---|
| 11 | + * |
|---|
| 12 | + * @package WordPress |
|---|
| 13 | + * @subpackage Deprecated |
|---|
| 14 | + */ |
|---|
| 15 | |
|---|
| 16 | +/* |
|---|
| 17 | + * Deprecated functions come here to die. |
|---|
| 18 | + */ |
|---|
| 19 | + |
|---|
| 20 | +/** |
|---|
| 21 | + * @since unknown |
|---|
| 22 | + * @deprecated 3.0 |
|---|
| 23 | + * @deprecated Use wp_generate_password() |
|---|
| 24 | + * @see wp_generate_password() |
|---|
| 25 | + */ |
|---|
| 26 | function generate_random_password( $len = 8 ) { |
|---|
| 27 | - _deprecated_function( __FUNCTION__, '3.0', 'wp_generarte_password()' ); |
|---|
| 28 | - $random_password = substr(md5(uniqid(microtime())), 0, intval( $len ) ); |
|---|
| 29 | - $random_password = apply_filters('random_password', $random_password); |
|---|
| 30 | + _deprecated_function( __FUNCTION__, '3.0', 'wp_generate_password()' ); |
|---|
| 31 | + $random_password = substr( md5( uniqid( microtime() ) ), 0, intval( $len ) ); |
|---|
| 32 | + $random_password = apply_filters( 'random_password', $random_password ); |
|---|
| 33 | return $random_password; |
|---|
| 34 | } |
|---|
| 35 | |
|---|