WP_Recovery_Mode_Cookie_Service::recovery_mode_hash

Advertisement

Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Gets a form of wp_hash() specific to Recovery Mode.

Syntax Syntax

WP_Recovery_Mode_Cookie_Service::recovery_mode_hash( string $data )

Description Description

We cannot use wp_hash() because it is defined in pluggable.php which is not loaded until after plugins are loaded, which is too late to verify the recovery mode cookie.

This tries to use the AUTH salts first, but if they aren’t valid specific salts will be generated and stored.

Parameters Parameters

$data

(string) (Required) Data to hash.

Return Return

(string|false) The hashed $data, or false on failure.

Source Source

File: wp-includes/class-wp-recovery-mode-cookie-service.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.