error(); } /** * Always fails closed. * * @since 7.2.0 * * @param string $wrapped Ignored. * @return WP_Error */ public function unwrap( string $wrapped ): WP_Error { return $this->error(); } /** * Describes the broken state, for Site Health. * * @since 7.2.0 * * @return string */ public function get_key_source(): string { return __( 'broken secrets.php drop-in', 'default' ); } /** * Builds the error every method returns. * * @since 7.2.0 * * @return WP_Error */ private function error(): WP_Error { return new WP_Error( WP_SECRETS_ERROR_KEY_UNAVAILABLE, __( 'The secrets.php drop-in did not provide a usable keyring.', 'default' ) ); } }