/home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/API
Edit: /home/vianto5/hidalgoresidences.mx/wp-content/plugins/sitepress-multilingual-cms/API/Batch.php (1221B)
cancelJobsInBatch( $batchId );
}
\TranslationProxy_Basket::set_batch_data( null );
icl_cache_clear();
} );
}
public static function sendStrings( Messages $messages, $batch ) {
$dispatchActions = function ( $batch ) {
do_action( 'wpml_tm_send_st-batch_jobs', $batch, 'st-batch' );
};
self::send( $dispatchActions, [ $messages, 'showForStrings' ], $batch );
}
private static function send( callable $dispatchAction, callable $displayErrors, $batch ) {
$dispatchAction( $batch );
$errors = wpml_load_core_tm()->messages_by_type( 'error' );
if ( $errors ) {
self::rollback( $batch->get_basket_name() );
$displayErrors( Fns::map( Obj::prop( 'text' ), $errors ), 'error' );
}
}
}
Batch::init();