We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
function wo_ap_et_access_token_for_user() { global $wpdb;
$current_user = get_current_user_id(); $check = $wpdb->get_row( "SELECT * FROM {$wpdb->prefix}oauth_access_tokens WHERE user_id ={$current_user}" ); return $check;
}
Needs to be:
$current_user = get_current_user_id(); $query = "SELECT * FROM {$wpdb->prefix}oauth_access_tokens WHERE user_id = %d"; $query = $wpdb->prepare( $query, $current_user ); return $wpdb->get_row( $query );
NOTE: The prepare() method of $wpdb ensures security of the query.
https://developer.wordpress.org/reference/classes/wpdb/prepare/
The text was updated successfully, but these errors were encountered:
No branches or pull requests
function wo_ap_et_access_token_for_user() {
global $wpdb;
}
Needs to be:
function wo_ap_et_access_token_for_user() {
global $wpdb;
}
NOTE: The prepare() method of $wpdb ensures security of the query.
https://developer.wordpress.org/reference/classes/wpdb/prepare/
The text was updated successfully, but these errors were encountered: