Skip to content

Commit

Permalink
Adjust messages
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Apr 24, 2024
1 parent ec9c5b9 commit 5484e3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions includes/classes/ElasticsearchErrorInterpreter.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ public function maybe_suggest_solution_for_es( $error ) {
}

if ( Utils\is_epio() ) {
if ( preg_match( '/You have reached the limit of indices of your plan/', $error, $matches ) ) {
if ( preg_match( '/you have reached the limit of indices your plan supports/', $error, $matches ) ) {
return [
'error' => $error,
'solution' => sprintf(
/* translators: ElasticPress.io My Account URL */
__( 'Please go to your <a href="%s">ElasticPress.io Account Page</a> and delete unused indices or upgrade your plan.', 'elasticpress' ),
'https://www.elasticpress.io/my-account/'
/* translators: ElasticPress.io Article URL */
__( 'Please refer to <a href="%s">this article</a> outlining how to address this issue.', 'elasticpress' ),
'https://elasticpress.zendesk.com/hc/en-us/articles/26165267320461'
),
];
}
Expand Down
2 changes: 1 addition & 1 deletion includes/classes/IndexHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ protected function maybe_apply_feature_settings() {
* @return boolean
*/
protected function should_suggest_retry( $message ) {
return ! preg_match( '/You have reached the limit of indices of your plan/', $message );
return ! preg_match( '/you have reached the limit of indices your plan supports/', $message );
}

/**
Expand Down

0 comments on commit 5484e3b

Please sign in to comment.