diff --git a/includes/class-dependencies.php b/includes/class-dependencies.php index 4d31beef..4e920a02 100644 --- a/includes/class-dependencies.php +++ b/includes/class-dependencies.php @@ -38,6 +38,7 @@ if ( ! class_exists( 'um\Dependencies' ) ) { 'groups' => '2.0', 'instagram' => '2.0', 'invitations' => '2.0', + 'frontend-posting' => '1.0', 'mailchimp' => '2.0.1', 'messaging' => '2.0.5', 'mycred' => '2.0', diff --git a/includes/class-init.php b/includes/class-init.php index 1de8286a..6650c222 100644 --- a/includes/class-init.php +++ b/includes/class-init.php @@ -438,7 +438,7 @@ if ( ! class_exists( 'UM' ) ) { $array = explode( '\\', strtolower( $class ) ); $array[ count( $array ) - 1 ] = 'class-'. end( $array ); if ( strpos( $class, 'um_ext' ) === 0 ) { - $full_path = str_replace( 'ultimate-member', '', rtrim( um_path, '/' ) ) . str_replace( '_', '-', $array[1] ) . '/includes/'; + $full_path = str_replace( 'ultimate-member', '', untrailingslashit( um_path ) ) . str_replace( '_', '-', $array[1] ) . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR; unset( $array[0], $array[1] ); $path = implode( DIRECTORY_SEPARATOR, $array ); $path = str_replace( '_', '-', $path );