Experiment with require statement, because if we are here, then class didnt existed.
This commit is contained in:
parent
223172a080
commit
775537a74a
|
@ -73,7 +73,7 @@ class WC_Autoloader {
|
|||
*/
|
||||
private function load_file( $path ) {
|
||||
if ( $path && is_readable( $path ) ) {
|
||||
include_once $path;
|
||||
require $path;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue