Ticket #39445: 39445.patch
File 39445.patch, 2.5 KB (added by , 8 years ago) |
---|
-
src/wp-includes/pluggable.php
1805 1805 1806 1806 // Now insert the key, hashed, into the DB. 1807 1807 if ( empty( $wp_hasher ) ) { 1808 require_once ABSPATH . WPINC . '/class-phpass.php'; 1808 1809 $wp_hasher = new PasswordHash( 8, true ); 1809 1810 } 1810 1811 $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); … … 2085 2086 global $wp_hasher; 2086 2087 2087 2088 if ( empty($wp_hasher) ) { 2089 require_once ABSPATH . WPINC . '/class-phpass.php'; 2088 2090 // By default, use the portable hash from phpass 2089 2091 $wp_hasher = new PasswordHash(8, true); 2090 2092 } … … 2144 2146 // If the stored hash is longer than an MD5, presume the 2145 2147 // new style phpass portable hash. 2146 2148 if ( empty($wp_hasher) ) { 2149 require_once ABSPATH . WPINC . '/class-phpass.php'; 2147 2150 // By default, use the portable hash from phpass 2148 2151 $wp_hasher = new PasswordHash(8, true); 2149 2152 } -
src/wp-includes/post-template.php
792 792 /** This filter is documented in wp-includes/post.php */ 793 793 return apply_filters( 'post_password_required', true, $post ); 794 794 } 795 795 require_once ABSPATH . WPINC . '/class-phpass.php'; 796 796 $hasher = new PasswordHash( 8, true ); 797 797 798 798 $hash = wp_unslash( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ); -
src/wp-includes/user.php
2121 2121 2122 2122 // Now insert the key, hashed, into the DB. 2123 2123 if ( empty( $wp_hasher ) ) { 2124 require_once ABSPATH . WPINC . '/class-phpass.php'; 2124 2125 $wp_hasher = new PasswordHash( 8, true ); 2125 2126 } 2126 2127 $hashed = time() . ':' . $wp_hasher->HashPassword( $key ); … … 2165 2166 return new WP_Error('invalid_key', __('Invalid key')); 2166 2167 2167 2168 if ( empty( $wp_hasher ) ) { 2169 require_once ABSPATH . WPINC . '/class-phpass.php'; 2168 2170 $wp_hasher = new PasswordHash( 8, true ); 2169 2171 } 2170 2172 -
src/wp-login.php
438 438 exit(); 439 439 } 440 440 441 require_once ABSPATH . WPINC . '/class-phpass.php'; 441 442 $hasher = new PasswordHash( 8, true ); 442 443 443 444 /**