Make WordPress Core

Ticket #39445: 39445.patch

File 39445.patch, 2.5 KB (added by ketuchetan, 8 years ago)

reverting [38371]

  • src/wp-includes/pluggable.php

     
    18051805
    18061806        // Now insert the key, hashed, into the DB.
    18071807        if ( empty( $wp_hasher ) ) {
     1808                require_once ABSPATH . WPINC . '/class-phpass.php';
    18081809                $wp_hasher = new PasswordHash( 8, true );
    18091810        }
    18101811        $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
     
    20852086        global $wp_hasher;
    20862087
    20872088        if ( empty($wp_hasher) ) {
     2089                require_once ABSPATH . WPINC . '/class-phpass.php';
    20882090                // By default, use the portable hash from phpass
    20892091                $wp_hasher = new PasswordHash(8, true);
    20902092        }
     
    21442146        // If the stored hash is longer than an MD5, presume the
    21452147        // new style phpass portable hash.
    21462148        if ( empty($wp_hasher) ) {
     2149                require_once ABSPATH . WPINC . '/class-phpass.php';
    21472150                // By default, use the portable hash from phpass
    21482151                $wp_hasher = new PasswordHash(8, true);
    21492152        }
  • src/wp-includes/post-template.php

     
    792792                /** This filter is documented in wp-includes/post.php */
    793793                return apply_filters( 'post_password_required', true, $post );
    794794        }
    795 
     795        require_once ABSPATH . WPINC . '/class-phpass.php';
    796796        $hasher = new PasswordHash( 8, true );
    797797
    798798        $hash = wp_unslash( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] );
  • src/wp-includes/user.php

     
    21212121
    21222122        // Now insert the key, hashed, into the DB.
    21232123        if ( empty( $wp_hasher ) ) {
     2124                require_once ABSPATH . WPINC . '/class-phpass.php';
    21242125                $wp_hasher = new PasswordHash( 8, true );
    21252126        }
    21262127        $hashed = time() . ':' . $wp_hasher->HashPassword( $key );
     
    21652166                return new WP_Error('invalid_key', __('Invalid key'));
    21662167
    21672168        if ( empty( $wp_hasher ) ) {
     2169                require_once ABSPATH . WPINC . '/class-phpass.php';
    21682170                $wp_hasher = new PasswordHash( 8, true );
    21692171        }
    21702172
  • src/wp-login.php

     
    438438                exit();
    439439        }
    440440
     441        require_once ABSPATH . WPINC . '/class-phpass.php';
    441442        $hasher = new PasswordHash( 8, true );
    442443
    443444        /**