WordPress.org

Make WordPress Core

Ticket #11746: 11746.2.diff

File 11746.2.diff, 1.2 KB (added by nacin, 8 years ago)

Some inline docs added as well.

  • wp-includes/ms-deprecated.php

     
    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);
     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