trustedlogin / trustedlogin-vendor

Plugin to interact with TrustedLogin's encrypted storage infrastructure to redirect support staff into an authenticated session on client installations.
GNU General Public License v3.0
0 stars 1 forks source link

Handle returned errors properly #54

Closed jamesgol closed 3 years ago

jamesgol commented 3 years ago

Fixes fatal error

Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /sites/trustedlogin.dev/files/wp-content/plugins/trustedlogin-vendor/includes/class-trustedlogin-sitekey-login.php:201 Stack trace: #0 /sites/trustedlogin.dev/files/wp-includes/class-wp-hook.php(292): TrustedLogin\Vendor\SiteKey_Login->maybe_handle_accesskey() #1 /sites/trustedlogin.dev/files/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters() #2 /sites/trustedlogin.dev/files/wp-includes/plugin.php(484): WP_Hook->do_action() #3 /sites/trustedlogin.dev/files/wp-admin/admin.php(175): do_action() #4 {main} thrown in /sites/trustedlogin.dev/files/wp-content/plugins/trustedlogin-vendor/includes/class-trustedlogin-sitekey-login.php on line 201