mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Tweak sql concatenate with prepare statement
This commit is contained in:
@@ -240,7 +240,7 @@ class UM_Permalinks {
|
||||
if( in_array( um_get_option( 'permalink_base'), $full_name_permalinks ) )
|
||||
{
|
||||
$full_name = um_user( 'full_name' );
|
||||
$count = $wpdb->get_var( sprintf(
|
||||
$count = $wpdb->get_var( $wpdb->prepare(
|
||||
"SELECT COUNT(*) as count FROM %s WHERE meta_key = 'full_name' && meta_value = '%s'",
|
||||
$wpdb->usermeta,
|
||||
um_user( 'full_name' )
|
||||
|
||||
Reference in New Issue
Block a user