Skip to content

Commit fe41a0f

Browse files
committed
Reverse implode argument order
1 parent 2b0b4c5 commit fe41a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function( $class ) {
1717
$last = array_pop( $parts ); // File should be 'class-[...].php'
1818
$last = 'class-' . $last . '.php';
1919
$parts[] = $last;
20-
$file = dirname( __FILE__ ) . '/inc/' . str_replace( '_', '-', strtolower( implode( $parts, '/' ) ) );
20+
$file = dirname( __FILE__ ) . '/inc/' . str_replace( '_', '-', strtolower( implode( '/', $parts ) ) );
2121
if ( file_exists( $file ) ) {
2222
require $file;
2323
}

0 commit comments

Comments
 (0)