From da3415e6473ceccbfcabf167624acdedb1891931 Mon Sep 17 00:00:00 2001 From: Bruce Baker <36553629+brucbake07@users.noreply.github.com> Date: Wed, 5 Aug 2020 04:12:07 -0400 Subject: [PATCH] Update radl.php Updated line 62 to properly declare the wp-plugin directory path. --- radl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radl.php b/radl.php index 78deb79..01a88ac 100644 --- a/radl.php +++ b/radl.php @@ -59,7 +59,7 @@ public static function localize() private static function autoloader( $class_name ) { if ( strpos( $class_name, 'RADL' ) === 0 ) { - require plugin_dir_path( __DIR__ ) . str_replace( '\\', '/', str_replace( '_', '-', str_replace( 'radl', 'rest-api-data-localizer', strtolower( $class_name ) ) ) ) . '.php'; + require plugin_dir_path __DIR__ . str_replace( '\\', '/', str_replace( '_', '-', str_replace( 'radl', '', strtolower( $class_name ) ) ) ) . '.php'; } }