Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/wpforms-.../template.../admin/payments/single
File: payment-history.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Single Payment page - Display a table outlining the subscription payment history.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 1.8.4
[4] Fix | Delete
*
[5] Fix | Delete
* @var string $title Table heading.
[6] Fix | Delete
* @var array $renewals Renewal payments data.
[7] Fix | Delete
* @var array $types Payment types.
[8] Fix | Delete
* @var array $statuses Payment statuses.
[9] Fix | Delete
* @var string $placeholder_na_text Placeholder text. Display "N\A" if empty.
[10] Fix | Delete
* @var string $single_url Single payment URL. Note that payment ID will be appended to this URL.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[14] Fix | Delete
exit;
[15] Fix | Delete
}
[16] Fix | Delete
?>
[17] Fix | Delete
[18] Fix | Delete
<div class="postbox">
[19] Fix | Delete
<div class="postbox-header">
[20] Fix | Delete
<h2 class="hndle">
[21] Fix | Delete
<span><?php echo esc_html( $title ); ?></span>
[22] Fix | Delete
</h2>
[23] Fix | Delete
</div>
[24] Fix | Delete
<table class="wpforms-subscription-payment-history" role="table" aria-label="<?php esc_attr_e( 'Subscription Renewal History Table', 'wpforms-lite' ); ?>">
[25] Fix | Delete
<thead>
[26] Fix | Delete
<tr>
[27] Fix | Delete
<th scope="col"><?php esc_html_e( 'Payment ID', 'wpforms-lite' ); ?></th>
[28] Fix | Delete
<th scope="col"><?php esc_html_e( 'Date', 'wpforms-lite' ); ?></th>
[29] Fix | Delete
<th scope="col"><?php esc_html_e( 'Type', 'wpforms-lite' ); ?></th>
[30] Fix | Delete
<th scope="col"><?php esc_html_e( 'Total', 'wpforms-lite' ); ?></th>
[31] Fix | Delete
<th scope="col"><?php esc_html_e( 'Status', 'wpforms-lite' ); ?></th>
[32] Fix | Delete
</thead>
[33] Fix | Delete
<tbody>
[34] Fix | Delete
<?php
[35] Fix | Delete
foreach ( $renewals as $renewal ) :
[36] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
[37] Fix | Delete
$is_current = isset( $_GET['payment_id'] ) && $renewal->id === wp_unslash( $_GET['payment_id'] );
[38] Fix | Delete
?>
[39] Fix | Delete
<tr class="<?php echo $is_current ? sanitize_html_class( 'current' ) : ''; ?>">
[40] Fix | Delete
<td data-title="<?php esc_attr_e( 'Payment ID', 'wpforms-lite' ); ?>">
[41] Fix | Delete
<a href="<?php echo esc_url( add_query_arg( [ 'payment_id' => $renewal->id ], $single_url ) ); ?>">
[42] Fix | Delete
<?php echo esc_html( $renewal->id ); ?>
[43] Fix | Delete
</a>
[44] Fix | Delete
</td>
[45] Fix | Delete
<td data-title="<?php esc_attr_e( 'Date', 'wpforms-lite' ); ?>">
[46] Fix | Delete
<?php echo wpforms_datetime_format( $renewal->date_created_gmt, 'M j, Y', true ); ?>
[47] Fix | Delete
</td>
[48] Fix | Delete
<td data-title="<?php esc_attr_e( 'Type', 'wpforms-lite' ); ?>">
[49] Fix | Delete
<?php echo esc_html( isset( $types[ $renewal->type ] ) ? $renewal->type : $placeholder_na_text ); ?>
[50] Fix | Delete
</td>
[51] Fix | Delete
<td data-title="<?php esc_attr_e( 'Total', 'wpforms-lite' ); ?>">
[52] Fix | Delete
<?php echo wpforms_format_amount( wpforms_sanitize_amount( $renewal->total_amount, $renewal->currency ), true, $renewal->currency ); ?>
[53] Fix | Delete
</td>
[54] Fix | Delete
<td data-title="<?php esc_attr_e( 'Status', 'wpforms-lite' ); ?>">
[55] Fix | Delete
<?php echo esc_html( $statuses[ $renewal->status ] ); ?>
[56] Fix | Delete
</td>
[57] Fix | Delete
</tr>
[58] Fix | Delete
<?php endforeach; ?>
[59] Fix | Delete
</tbody>
[60] Fix | Delete
</table>
[61] Fix | Delete
</div>
[62] Fix | Delete
[63] Fix | Delete
<?php
[64] Fix | Delete
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */
[65] Fix | Delete
[66] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function