Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP CLI instant results template commands #3216

Merged
merged 9 commits into from
Jan 20, 2023
Prev Previous commit
Next Next commit
Use period
  • Loading branch information
oscarssanchez committed Jan 17, 2023
commit 3334bc24a0a748624bce21f427a2a92f5831fe06
6 changes: 3 additions & 3 deletions includes/classes/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1614,7 +1614,7 @@ public function get_search_template( $args, $assoc_args ) {
$template = json_decode( $instant_results->epio_get_search_template() );

$this->pretty_json_encode( $template, $assoc_args['pretty'] );
WP_CLI::success( esc_html__( 'Done', 'elasticpress' ) );
WP_CLI::success( esc_html__( 'Done.', 'elasticpress' ) );
}

/**
Expand All @@ -1625,7 +1625,7 @@ public function get_search_template( $args, $assoc_args ) {
public function put_search_template() {
$instant_results = Features::factory()->get_registered_feature( 'instant-results' );
$instant_results->epio_save_search_template();
WP_CLI::success( esc_html__( 'Done', 'elasticpress' ) );
WP_CLI::success( esc_html__( 'Done.', 'elasticpress' ) );
}

/**
Expand All @@ -1636,7 +1636,7 @@ public function put_search_template() {
public function delete_search_template() {
$instant_results = Features::factory()->get_registered_feature( 'instant-results' );
$instant_results->epio_delete_search_template();
WP_CLI::success( esc_html__( 'Done', 'elasticpress' ) );
WP_CLI::success( esc_html__( 'Done.', 'elasticpress' ) );
}

/**
Expand Down