WP_Recovery_Mode
class WP_Recovery_Mode
// Constructor: function Object() { [native code] } Core class used to implement Recovery Mode.
Methods 16 methods
| Method / Return | Description |
|---|---|
| __construct() void | WP_Recovery_Mode constructor. |
| initialize() void | Initialize recovery mode for the current request. |
| is_active() bool | Checks whether recovery mode is active. |
| get_session_id() string | Gets the recovery mode session ID. |
| is_initialized() bool | Checks whether recovery mode has been initialized. |
| handle_error() (true | Handles a fatal error occurring.
Parameters: $error: array |
| exit_recovery_mode() bool | Ends the current recovery mode session. |
| handle_exit_recovery_mode() void | Handles a request to exit Recovery Mode. |
| clean_expired_keys() void | Cleans any recovery mode keys that have expired according to the link TTL. |
| handle_cookie() void | Handles checking for the recovery mode cookie and validating it. |
| get_email_rate_limit() int | Gets the rate limit between sending new recovery mode email links. |
| get_link_ttl() int | Gets the number of seconds the recovery mode link is valid for. |
| get_extension_for_error() (array | Gets the extension that the error occurred in.
Parameters: $error: mixed |
| is_network_plugin() bool | Checks whether the given extension a network activated plugin.
Parameters: $extension: mixed |
| store_error() bool | Stores the given error so that the extension causing it is paused.
Parameters: $error: mixed |
| redirect_protected() void | Redirects the current request to allow recovering multiple errors in one go. |
Properties
| Property / Type | Description |
|---|---|
| $cookie_service mixed public | No description available. |
| $key_service mixed public | No description available. |
| $link_service mixed public | No description available. |
| $email_service mixed public | No description available. |
| $is_initialized mixed public | No description available. |
| $is_active mixed public | No description available. |
| $session_id mixed public | No description available. |