Skip to content

Fix critical PHPCS issues#49

Open
philcable wants to merge 16 commits intomasterfrom
fix/critical-issues
Open

Fix critical PHPCS issues#49
philcable wants to merge 16 commits intomasterfrom
fix/critical-issues

Conversation

@philcable
Copy link
Copy Markdown

@philcable philcable commented Nov 27, 2019

For 5.x upgrade preparation:

  • Fix unprepared SQL queries
  • Consolidate SQL query code to avoid false positives for unprepared statement
  • Replace local wp_redirect() calls with wp_safe_redirect()
  • Update post type name in order test to avoid use of reserved order post type

philcable and others added 16 commits November 20, 2019 07:44
This also consolidates the statement to avoid a false positive for
an unprepared SQL statement.
This also consolidates the statement to avoid a false positive for
an unprepared SQL statement.
This also flags the false positive below the updated statement.
This also flags the false positive below the updated statement.
This also flags the false positive below the updated statement.
This also flags the false positive below the updated statement.
This also consolidates the query to avoid a false positive for
an unprepared SQL statement.
This also follows the redirect with a call to `exit;`
The `$fields` variable probably needs some updated handling, too.
Not certain how necessary this change really is, as this is a test.
This is likely safe already, but it doesn't hurt to check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants