Changeset 41654 for trunk/src/wp-includes/user.php
- Timestamp:
- 09/30/2017 04:09:11 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r41653 r41654 2521 2521 2522 2522 $prefix = $wpdb->get_blog_prefix( $site_id ); 2523 $regex = implode( '|', array_keys( wp_roles()->get_names() ) ); 2523 2524 if ( is_multisite() && $site_id != get_current_blog_id() ) { 2525 switch_to_blog( $site_id ); 2526 $role_names = wp_roles()->get_names(); 2527 restore_current_blog(); 2528 } else { 2529 $role_names = wp_roles()->get_names(); 2530 } 2531 2532 $regex = implode( '|', array_keys( $role_names ) ); 2524 2533 $regex = preg_replace( '/[^a-zA-Z_\|-]/', '', $regex ); 2525 2534 $users = $wpdb->get_col( $wpdb->prepare( "
Note: See TracChangeset
for help on using the changeset viewer.