mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Use the WPINC constant when loading class-phpass.php
Props wojtek.szkutnik See #14157. git-svn-id: https://develop.svn.wordpress.org/trunk@28903 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -694,7 +694,7 @@ function post_password_required( $post = null ) {
|
||||
if ( ! isset( $_COOKIE['wp-postpass_' . COOKIEHASH] ) )
|
||||
return true;
|
||||
|
||||
require_once ABSPATH . 'wp-includes/class-phpass.php';
|
||||
require_once ABSPATH . WPINC . '/class-phpass.php';
|
||||
$hasher = new PasswordHash( 8, true );
|
||||
|
||||
$hash = wp_unslash( $_COOKIE[ 'wp-postpass_' . COOKIEHASH ] );
|
||||
|
||||
Reference in New Issue
Block a user