diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
index 6ee424a..07a06be 100644
a
|
b
|
function wp_hash_password($password) { |
1413 | 1413 | if ( empty($wp_hasher) ) { |
1414 | 1414 | require_once( ABSPATH . 'wp-includes/class-phpass.php'); |
1415 | 1415 | // By default, use the portable hash from phpass |
1416 | | $wp_hasher = new PasswordHash(8, true); |
| 1416 | $wp_hasher = new PasswordHash(8, false); |
1417 | 1417 | } |
1418 | 1418 | |
1419 | 1419 | return $wp_hasher->HashPassword($password); |
… |
… |
function wp_check_password($password, $hash, $user_id = '') { |
1461 | 1461 | if ( empty($wp_hasher) ) { |
1462 | 1462 | require_once( ABSPATH . 'wp-includes/class-phpass.php'); |
1463 | 1463 | // By default, use the portable hash from phpass |
1464 | | $wp_hasher = new PasswordHash(8, true); |
| 1464 | $wp_hasher = new PasswordHash(8, false); |
1465 | 1465 | } |
1466 | 1466 | |
1467 | 1467 | $check = $wp_hasher->CheckPassword($password, $hash); |
diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php
index a8e4f89..020e87a 100644
a
|
b
|
function post_password_required( $post = null ) { |
570 | 570 | if ( empty( $wp_hasher ) ) { |
571 | 571 | require_once( ABSPATH . 'wp-includes/class-phpass.php'); |
572 | 572 | // By default, use the portable hash from phpass |
573 | | $wp_hasher = new PasswordHash(8, true); |
| 573 | $wp_hasher = new PasswordHash(8, false); |
574 | 574 | } |
575 | 575 | |
576 | 576 | $hash = stripslashes( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] ); |
diff --git a/wp-login.php b/wp-login.php
index 5d4f3f7..1e74d07 100644
a
|
b
|
case 'postpass' : |
392 | 392 | if ( empty( $wp_hasher ) ) { |
393 | 393 | require_once( ABSPATH . 'wp-includes/class-phpass.php' ); |
394 | 394 | // By default, use the portable hash from phpass |
395 | | $wp_hasher = new PasswordHash(8, true); |
| 395 | $wp_hasher = new PasswordHash(8, false); |
396 | 396 | } |
397 | 397 | |
398 | 398 | // 10 days |