mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-05 10:25:45 +03:00
Apply coding standards.
This commit is contained in:
parent
c1ce72d447
commit
13a417ce8e
9 changed files with 50 additions and 52 deletions
|
@ -31,13 +31,11 @@ defined( 'WPINC' ) || die();
|
|||
function get_xprofile_contribution_data( array $user_ids ) {
|
||||
global $wpdb;
|
||||
|
||||
$sql = $wpdb->prepare(
|
||||
'
|
||||
SELECT user_id, field_id, value
|
||||
FROM bpmain_bp_xprofile_data
|
||||
WHERE user_id IN ( %1$s )
|
||||
AND field_id IN ( %2$s )
|
||||
',
|
||||
$sql = $wpdb->prepare( '
|
||||
SELECT user_id, field_id, value
|
||||
FROM bpmain_bp_xprofile_data
|
||||
WHERE user_id IN ( %1$s )
|
||||
AND field_id IN ( %2$s )',
|
||||
implode( ', ', array_map( 'absint', $user_ids ) ),
|
||||
implode( ', ', array_map( 'absint', array_values( FIELD_IDS ) ) )
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue