PluginProbe
Private groups / 2.4
Private groups v2.4
trunk 1.5 1.6 1.7 1.8 1.8.1 1.9.1 1.9.2 2.0 2.0.1 2.2 2.3 2.4 2.5 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 All 116 releases
← All changes | includes/settings.php +3 -0 2.32.4 View file →
@@ -298,9 +298,12 @@
298 298 $countu=0 ;
299 299 foreach ($users as $user) {
300 300
301 301 $check= get_user_meta( $user, 'private_group',true);
302 + //single user check
302 303 if ($check==$name) $countu++ ;
304 + //multiple group set
305 + if (strpos($check, '*'.$name.'*') !== FALSE) $countu++;
303 306 }
304 307 echo $countu ;
305 308 ?>
306 309