Skip to content

Commit

Permalink
Hide prefix trailing dash on settings page (#1204)
Browse files Browse the repository at this point in the history
* Hide prefix trailing dash on settings page

* Use rtrim to hide trailing dash
  • Loading branch information
oscarssanchez authored and Allan Collins committed Jan 21, 2019
1 parent 917d02b commit 2adc740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</th>
<td>
<?php if ( apply_filters( 'ep_admin_show_index_prefix', true ) ) : ?>
<input <?php if ( EP_Config::$option_prefix ) : ?>disabled<?php endif; ?> type="text" value="<?php echo esc_attr( ep_get_index_prefix() ); ?>" name="ep_prefix" id="ep_prefix">
<input <?php if ( EP_Config::$option_prefix ) : ?>disabled<?php endif; ?> type="text" value="<?php echo esc_attr( rtrim( ep_get_index_prefix(), '-' ) ); ?>" name="ep_prefix" id="ep_prefix">
<?php endif ?>
<?php if ( EP_Config::$option_prefix ) : ?>
<span class="description"><?php esc_html_e( 'Your Subscription ID is set in wp-config.php', 'elasticpress' ); ?></span>
Expand Down

0 comments on commit 2adc740

Please sign in to comment.