diff --git a/.travis.yml b/.travis.yml index 36829be..fafe8a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,14 +19,20 @@ cache: matrix: include: + - php: 7.4snapshot + env: WP_VERSION=nightly - php: 7.3 env: WP_VERSION=latest + # - php: 7.3 + # env: WP_TRAVISCI=phpcs + - php: 7.3 + env: WP_TRAVISCI=nightly - php: 7.2 env: WP_VERSION=latest - - php: 7.2 + - php: 7.1 + env: WP_VERSION=latest + - php: 7.1 env: WP_VERSION=4.9 - - php: 7.2 - env: WP_VERSION=trunk before_script: - export PATH="$HOME/.composer/vendor/bin:$PATH" diff --git a/pantheon-hud.php b/pantheon-hud.php index b3b2023..b6c0be4 100644 --- a/pantheon-hud.php +++ b/pantheon-hud.php @@ -34,7 +34,7 @@ $last = array_pop( $parts ); // File should be 'class-[...].php' $last = 'class-' . $last . '.php'; $parts[] = $last; - $file = dirname( __FILE__ ) . '/inc/' . str_replace( '_', '-', strtolower( implode( $parts, '/' ) ) ); + $file = dirname( __FILE__ ) . '/inc/' . str_replace( '_', '-', strtolower( implode( '/', $parts ) ) ); if ( file_exists( $file ) ) { require $file; }