Make WordPress Core

Ticket #47405: 47405.diff

File 47405.diff, 956 bytes (added by priyankkpatel, 7 years ago)

Example patch for wp-includes/class-phpass.php

  • src/wp-includes/class-phpass.php

     src/wp-includes/class-phpass.php | 17 +++++++++++++++++
     1 file changed, 17 insertions(+)
    
    diff --git a/src/wp-includes/class-phpass.php b/src/wp-includes/class-phpass.php
    index 8b8b113194..74d9a22a7f 100644
    a b class PasswordHash { 
    6262                self::__construct( $iteration_count_log2, $portable_hashes );
    6363        }
    6464
     65        /**
     66         * Attempts to get random string.
     67         *
     68         * @since 2.9.0
     69         *
     70         * @param integer $count number as input parameter.
     71         * @return string get random string.
     72         */
    6573        function get_random_bytes($count)
    6674        {
    6775                $output = '';
    class PasswordHash { 
    8593                return $output;
    8694        }
    8795
     96        /**
     97         * Attempts to encode string.
     98         *
     99         * @since 2.9.0
     100         *
     101         * @param integer $count number as input parameter.
     102         * @param string $input string to be encoded.
     103         * @return string encoded string.
     104         */
    88105        function encode64($input, $count)
    89106        {
    90107                $output = '';