[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> class-wp-recovery-mode-link-service.php (summary)

Error Protection API: WP_Recovery_Mode_Link_Handler class

File Size: 130 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 wp-includes/pluggable.php

Defines 1 class

WP_Recovery_Mode_Link_Service:: (4 methods):
  __construct()
  generate_url()
  handle_begin_link()
  get_recovery_mode_begin_url()


Class: WP_Recovery_Mode_Link_Service  - X-Ref

Core class used to generate and handle recovery mode links.

__construct( WP_Recovery_Mode_Cookie_Service $cookie_service, WP_Recovery_Mode_Key_Service $key_service )   X-Ref
WP_Recovery_Mode_Link_Service constructor.

param: WP_Recovery_Mode_Cookie_Service $cookie_service Service to handle setting the recovery mode cookie.
param: WP_Recovery_Mode_Key_Service    $key_service    Service to handle generating recovery mode keys.

generate_url()   X-Ref
Generates a URL to begin recovery mode.

Only one recovery mode URL can may be valid at the same time.

return: string Generated URL.

handle_begin_link( $ttl )   X-Ref
Enters recovery mode when the user hits wp-login.php with a valid recovery mode link.

param: int $ttl Number of seconds the link should be valid for.

get_recovery_mode_begin_url( $token, $key )   X-Ref
Gets a URL to begin recovery mode.

return: string Recovery mode begin URL.
param: string $token Recovery Mode token created by {@see generate_recovery_mode_token()}.
param: string $key   Recovery Mode key created by {@see generate_and_store_recovery_mode_key()}.



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref