use printf instead of echo

This commit is contained in:
David Remer 2020-04-28 13:35:45 +03:00
parent 019b77e5b1
commit af492f57ac

View file

@ -75,9 +75,10 @@ class OrderTablePaymentStatusColumn
private function renderCompletedStatus()
{
echo '<span class="dashicons dashicons-yes">
<span class="screen-reader-text">' . esc_html__('Payment captured', 'woocommerce-paypal-commerce-gateway') . '</span>
</span>';
printf(
'<span class="dashicons dashicons-yes"><span class="screen-reader-text">%s</span></span>',
esc_html__('Payment captured', 'woocommerce-paypal-commerce-gateway')
);
}
private function renderIncompletedStatus()