Skip to content

Commit

Permalink
Feedback implement
Browse files Browse the repository at this point in the history
  • Loading branch information
burhandodhy committed Jun 20, 2022
1 parent 8fd90d2 commit ef8aa43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/classes/Screen/Sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function admin_enqueue_scripts() {
$data['sync_wpcli'] = esc_html__( 'WP CLI sync is occurring.', 'elasticpress' );
$data['sync_error'] = esc_html__( 'An error occurred while syncing', 'elasticpress' );
$data['sync_interrupted'] = esc_html__( 'Sync interrupted.', 'elasticpress' );
$data['is_epio'] = filter_var( Utils\is_epio(), FILTER_VALIDATE_BOOLEAN );
$data['is_epio'] = Utils\is_epio();

wp_localize_script( 'ep_sync_scripts', 'epDash', $data );
}
Expand Down
2 changes: 1 addition & 1 deletion includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function get_index_prefix() {
* @return bool
*/
function is_epio() {
return preg_match( '#elasticpress\.io#i', get_host() );
return filter_var( preg_match( '#elasticpress\.io#i', get_host() ), FILTER_VALIDATE_BOOLEAN );
}

/**
Expand Down

0 comments on commit ef8aa43

Please sign in to comment.