Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix critical PHPCS issues #49

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Fix critical PHPCS issues #49

wants to merge 16 commits into from

Conversation

philcable
Copy link

@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.

None yet

2 participants