Skip to content

Commit

Permalink
re-add stats properly
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Jan 17, 2025
1 parent faa3284 commit 79facf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<tr>
<th colspan="3" data-export-label="">
<?php echo esc_html( $gateway->get_method_title() ); ?>
<?php echo wc_help_tip( esc_html__( 'This section contains configuration settings for this gateway.', 'woocommerce-square' ) ); ?> // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
<?php echo wc_help_tip( esc_html__( 'This section contains configuration settings for this gateway.', 'woocommerce-square' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</th>
</tr>
</thead>
Expand Down
2 changes: 1 addition & 1 deletion includes/Gateway/Cash_App_Pay_Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ public function log_js_data() {
// add the data
if ( ! empty( $_REQUEST['data'] ) ) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
$message .= print_r( wc_clean( wp_unslash( $_REQUEST['data'] ) ), true ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
$message .= print_r( wc_clean( wp_unslash( $_REQUEST['data'] ) ), true ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.PHP.DevelopmentFunctions.error_log_print_r
}

$this->get_plugin()->log( $message, $this->get_id() );
Expand Down
4 changes: 2 additions & 2 deletions includes/Gateway/Gift_Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public function delete_sessions() {
*/
public static function is_new() {
// phpcs:ignore WordPress.Security.NonceVerification.Missing
return isset( $_POST['square-gift-card-buying-option'] ) ? 'new' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false;
return isset( $_POST['square-gift-card-buying-option'] ) ? 'new' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized

Check warning on line 656 in includes/Gateway/Gift_Card.php

View workflow job for this annotation

GitHub Actions / test

WordPress.Security.NonceVerification.Missing

Processing form data without nonce verification.

Check warning on line 656 in includes/Gateway/Gift_Card.php

View workflow job for this annotation

GitHub Actions / test

WordPress.Security.NonceVerification.Missing

Processing form data without nonce verification.
}

/**
Expand All @@ -665,6 +665,6 @@ public static function is_new() {
*/
public static function is_load() {
// phpcs:ignore WordPress.Security.NonceVerification.Missing
return isset( $_POST['square-gift-card-buying-option'] ) ? 'load' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false;
return isset( $_POST['square-gift-card-buying-option'] ) ? 'load' === wc_clean( wp_unslash( $_POST['square-gift-card-buying-option'] ) ) : false; // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotSanitized

Check warning on line 668 in includes/Gateway/Gift_Card.php

View workflow job for this annotation

GitHub Actions / test

WordPress.Security.NonceVerification.Missing

Processing form data without nonce verification.

Check warning on line 668 in includes/Gateway/Gift_Card.php

View workflow job for this annotation

GitHub Actions / test

WordPress.Security.NonceVerification.Missing

Processing form data without nonce verification.
}
}

0 comments on commit 79facf8

Please sign in to comment.