Skip to content

Commit fd96702

Browse files
committed
change to use log helper
1 parent 2409ddd commit fd96702

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

classes/WP_CLI/System_Command.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ public function version( array $args, array $assoc_args ) {
137137
* [--fullpath]
138138
* : List full path of source(s).
139139
*
140-
* [--skip-notice]
141-
* : Skip notice about registered sources.
142-
*
143140
* @param array $args Positional args.
144141
* @param array $assoc_args Keyed args.
145142
* @uses \ActionScheduler_Versions::get_sources()
@@ -150,7 +147,6 @@ public function version( array $args, array $assoc_args ) {
150147
public function source( array $args, array $assoc_args ) {
151148
$all = (bool) get_flag_value( $assoc_args, 'all' );
152149
$fullpath = (bool) get_flag_value( $assoc_args, 'fullpath' );
153-
$skipnote = (bool) get_flag_value( $assoc_args, 'skip-notice' );
154150
$versions = \ActionScheduler_Versions::instance();
155151
$source = $versions->active_source();
156152
$path = $source;
@@ -184,9 +180,7 @@ public function source( array $args, array $assoc_args ) {
184180

185181
ksort( $rows );
186182

187-
if ( ! $skipnote ) {
188-
\WP_CLI::line( PHP_EOL . 'Please note there can only be one unique registered instance of Action Scheduler per ' . PHP_EOL . 'version number, so this list may not include all the currently present copies of ' . PHP_EOL . 'Action Scheduler.' . PHP_EOL );
189-
}
183+
\WP_CLI::log( PHP_EOL . 'Please note there can only be one unique registered instance of Action Scheduler per ' . PHP_EOL . 'version number, so this list may not include all the currently present copies of ' . PHP_EOL . 'Action Scheduler.' . PHP_EOL );
190184

191185
$formatter = new \WP_CLI\Formatter( $assoc_args, array( 'source', 'version', 'active' ) );
192186
$formatter->display_items( $rows );

0 commit comments

Comments
 (0)