diff --git a/src/classes/installables.php b/src/classes/installables.php index f62c6a80..0a03db01 100644 --- a/src/classes/installables.php +++ b/src/classes/installables.php @@ -99,8 +99,8 @@ public static function register( $type, $slug, $data ) { /** @var WordPoints_Installables_App $installables */ $installables = wordpoints_apps()->get_sub_app( 'installables' ); $installables->register( - $type - , 'module' === $slug ? 'extension' : $slug + 'module' === $type ? 'extension' : $type + , $slug , 'WordPoints_Installables::installer_loader' , $data['version'] , ! empty( $data['network_wide'] ) @@ -263,6 +263,11 @@ public static function wpmu_new_blog( $blog_id ) { * @return WordPoints_InstallableI The installable object. */ public static function installer_loader( $type, $slug ) { + + if ( 'extension' === $type ) { + $type = 'module'; + } + return new WordPoints_Installable_Legacy( $type , $slug