From 2c8bd3e9d40287de2876de8499e476081f2a80b3 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Apr 2020 22:13:12 +0300 Subject: [PATCH] Update joomla2wp_mig_auth.php With this change, I don't get "Class not found" error in wordpress 5.4 --- joomla2wp_mig_auth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/joomla2wp_mig_auth.php b/joomla2wp_mig_auth.php index e6b21a9..cff100f 100644 --- a/joomla2wp_mig_auth.php +++ b/joomla2wp_mig_auth.php @@ -60,7 +60,8 @@ function joomla_mig_auth( $user, $username, $password ) { function auth_joomla_phpass( $username, $password, $joomlapass ) { // Use PHPass's portable hashes with a cost of 10. - $phpass = new PasswordHash(10, true); + require_once ABSPATH . WPINC . '/class-phpass.php'; + $phpass = new PasswordHash(10, true); $password = stripslashes($password);