Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Mar 23, 2023
1 parent 744eb8d commit bc57111
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions includes/classes/IndexHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,16 +686,16 @@ function( $item ) {
}

/**
* Filter the number of errors of a sync that should be stored.
* Filter the number of errors of a current sync that should be stored.
*
* @since 4.2.0
* @hook ep_sync_number_of_errors_stored
* @since 5.0.0
* @hook ep_current_sync_number_of_errors_stored
* @param {int} $number Number of errors to be logged.
* @return {int} New value
*/
$logged_errors = (int) apply_filters( 'ep_sync_number_of_errors_stored', 50 );
$logged_errors = (int) apply_filters( 'ep_current_sync_number_of_errors_stored', 50 );

$error_store_msg = 'Reached maximum number of errors to store';
$error_store_msg = __( 'Reached maximum number of errors to store', 'elasticpress' );

if ( is_wp_error( $return ) ) {
$this->index_meta['current_sync_item']['failed'] += count( $queued_items );
Expand Down

0 comments on commit bc57111

Please sign in to comment.