Skip to content

Commit 9a58b91

Browse files
committed
Tidying up.
1 parent 37e0cd7 commit 9a58b91

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/wp-includes/functions.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9095,8 +9095,7 @@ function wp_is_heic_image_mime_type( $mime_type ) {
90959095
*
90969096
* @since x.y.z
90979097
*
9098-
* @throws TypeError Thrown by Sodium
9099-
* @throws SodiumException Thrown by Sodium
9098+
* @throws TypeError Thrown by Sodium if the message is not a string.
91009099
*
91019100
* @param string $message The message to hash.
91029101
* @return string The hash of the message.
@@ -9113,6 +9112,8 @@ function wp_hash_value( string $message ): string {
91139112
*
91149113
* @since x.y.z
91159114
*
9115+
* @throws TypeError Thrown by Sodium if the message is not a string.
9116+
*
91169117
* @param string $message The plaintext message.
91179118
* @param string $hash Hash of the message to check against.
91189119
* @return bool Whether the message matches the hashed message.

src/wp-includes/pluggable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,8 +2753,7 @@ function wp_check_password( $password, $hash, $user_id = '' ) {
27532753
} elseif ( str_starts_with( $hash, '$P$' ) ) {
27542754
// Check the password using phpass.
27552755
require_once ABSPATH . WPINC . '/class-phpass.php';
2756-
$hasher = new PasswordHash( 8, true );
2757-
$check = $hasher->CheckPassword( $password, $hash );
2756+
$check = ( new PasswordHash( 8, true ) )->CheckPassword( $password, $hash );
27582757
} else {
27592758
// Check the password using compat support for any non-prefixed hash.
27602759
$check = password_verify( $password, $hash );

0 commit comments

Comments
 (0)