: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Single Payment page - Heading navigation.
* @var int $count Count of all payments.
* @var int $prev_count Count of previous payments.
* @var string $prev_url Previous payment URL.
* @var string $prev_class Previous payment class.
* @var string $next_url Next payment URL.
* @var string $next_class Next payment class.
* @var string $overview_url Payments Overview page URL.
if ( ! defined( 'ABSPATH' ) ) {
<a href="<?php echo esc_url( $overview_url ); ?>" class="page-title-action wpforms-btn wpforms-btn-orange" data-action="back">
<svg viewBox="0 0 16 14" class="page-title-action-icon">
<path d="M16 6v2H4l4 4-1 2-7-7 7-7 1 2-4 4h12Z"/>
<span class="page-title-action-text"><?php esc_html_e( 'Back to All Payments', 'wpforms-lite' ); ?></span>
<div class="wpforms-admin-single-navigation">
<div class="wpforms-admin-single-navigation-text">
printf( /* translators: %1$d - current number of payment, %2$d - total number of payments. */
esc_html__( 'Payment %1$d of %2$d', 'wpforms-lite' ),
<div class="wpforms-admin-single-navigation-buttons">
href="<?php echo esc_url( $prev_url ); ?>"
title="<?php esc_attr_e( 'Previous payment', 'wpforms-lite' ); ?>"
id="wpforms-admin-single-navigation-prev-link"
class="wpforms-btn-grey <?php echo sanitize_html_class( $prev_class ); ?>">
<span class="dashicons dashicons-arrow-left-alt2"></span>
class="wpforms-admin-single-navigation-current"
title="<?php esc_attr_e( 'Current payment', 'wpforms-lite' ); ?>">
<?php echo (int) $prev_count + 1; ?>
href="<?php echo esc_url( $next_url ); ?>"
title="<?php esc_attr_e( 'Next payment', 'wpforms-lite' ); ?>"
id="wpforms-admin-single-navigation-next-link"
class="wpforms-btn-grey <?php echo sanitize_html_class( $next_class ); ?>">
<span class="dashicons dashicons-arrow-right-alt2"></span>