WordPress.org

Make WordPress Core

Ticket #11746: 11746.3.diff

File 11746.3.diff, 1.2 KB (added by nacin, 5 years ago)

Little better inline documentation

  • wp-includes/ms-deprecated.php

     
    11<?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 */ 
    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); 
     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 ); 
    725        return $random_password; 
    826} 
    927