Skip to content

Commit 52e414b

Browse files
committed
fix mustache files patchs
1 parent fe25c2a commit 52e414b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Plugin_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ protected function status_single( $args ) {
198198
if ( $this->has_update( $file ) )
199199
$version .= ' (%gUpdate available%n)';
200200

201-
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( 'plugin-status.mustache', array(
201+
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( dirname( __DIR__ ) . '/templates/plugin-status.mustache', array(
202202
'slug' => Utils\get_plugin_name( $file ),
203203
'status' => $status,
204204
'version' => $version,

src/Theme_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected function status_single( $args ) {
166166
if ( $this->has_update( $theme->get_stylesheet() ) )
167167
$version .= ' (%gUpdate available%n)';
168168

169-
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( 'theme-status.mustache', array(
169+
echo WP_CLI::colorize( \WP_CLI\Utils\mustache_render( dirname( __DIR__ ) . 'theme-status.mustache', array(
170170
'slug' => $theme->get_stylesheet(),
171171
'status' => $status,
172172
'version' => $version,

0 commit comments

Comments
 (0)