Skip to content

Commit

Permalink
Add whitelisting comments for WPCS's CSRF sniff
Browse files Browse the repository at this point in the history
In this case, nonce verification isn’t necessary, because we aren’t
performing a restricted action.

See #324
  • Loading branch information
JDGrimes committed May 2, 2015
1 parent 99e9123 commit 5e5c11e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/points/includes/logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ function wordpoints_show_points_logs( $logs_query, array $args = array() ) {

$search_term = '';

if ( isset( $_POST['wordpoints_points_logs_search'] ) ) {
if ( isset( $_POST['wordpoints_points_logs_search'] ) ) { // WPCS: CSRF OK
$search_term = trim(
sanitize_text_field( $_POST['wordpoints_points_logs_search'] )
sanitize_text_field( $_POST['wordpoints_points_logs_search'] ) // WPCS: CSRF OK
);
}

Expand Down

0 comments on commit 5e5c11e

Please sign in to comment.