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

Add elasticsearch version in settings. #1201

Merged
merged 1 commit into from
Feb 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add elasticsearch version in settings.
  • Loading branch information
david committed Jan 11, 2019
commit 9fc4f610f007d1e9a2e98df4e9003656fd2703ce
11 changes: 11 additions & 0 deletions includes/settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@
<?php endif; ?>
</td>
</tr>
<tr>
<th scope="row">
<label for="ep_host"><?php esc_html_e( 'Elasticsearch Version', 'elasticpress' ); ?></label></th>
<td>
<?php if ( $version = ep_get_elasticsearch_version() ) : ?>
<span class="description"><?php echo esc_html( $version ); ?></span>
<?php else : ?>
<span class="description">&mdash;</span>
<?php endif; ?>
</td>
</tr>
<?php
if ( ep_is_epio() && current_user_can( 'manage_options' ) ) {
$credentials = ep_get_epio_credentials();
Expand Down