$wpdb->prepare error
-
Hi Rich-
With 3.5,
prepare
expects an additional argument, so it issues a warning for line 18 offunction etivite_bp_pending_activations_users_count()
. It doesn’t look like you needprepare
anyway (since the query isn’t using any variables), so I’ve updated the statement to$count = $wpdb->get_var( "SELECT COUNT(u.ID) FROM $wpdb->usermeta m1, $wpdb->users u WHERE u.ID = m1.user_id AND u.user_status = 2 AND m1.meta_key = 'activation_key' ORDER BY u.user_registered ASC" );
It works fine for me on two test installations.
-David
https://www.ads-software.com/extend/plugins/buddypress-pending-activations/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘$wpdb->prepare error’ is closed to new replies.