Ticket #11746: 11746.3.diff
| File 11746.3.diff, 1.2 KB (added by , 16 years ago) |
|---|
-
wp-includes/ms-deprecated.php
1 1 <?php 2 /** 3 * Deprecated multisite functions from WordPress MU and past WordPress versions. You 4 * shouldn't use these functions and look for the alternatives instead. The functions 5 * will be removed in a later version. 6 * 7 * @package WordPress 8 * @subpackage Deprecated 9 */ 2 10 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 */ 3 21 function generate_random_password( $len = 8 ) { 4 _deprecated_function( __FUNCTION__, '3.0', 'wp_genera rte_password()' );5 $random_password = substr( md5(uniqid(microtime())), 0, intval( $len ) );6 $random_password = apply_filters( 'random_password', $random_password);22 _deprecated_function( __FUNCTION__, '3.0', 'wp_generate_password()' ); 23 $random_password = substr( md5( uniqid( microtime() ) ), 0, intval( $len ) ); 24 $random_password = apply_filters( 'random_password', $random_password ); 7 25 return $random_password; 8 26 } 9 27