I just updated to WP 4.1 and a User_Query I was using is now returning 0 instead of the expected results.
$pm = array( //'role' => 'program_manager', 'orderby' => 'display_name', 'meta_query' => array( 'relation' => 'OR', array( 'key' => $staff_role, 'value' => 'program_manager', 'compare' => 'LIKE' ), array( 'key' => $staff_role, 'value' => 'administrator', 'compare' => 'LIKE' ) ) );
This function was inserted into a
new WP_User_Query() to return all users who have a custom role of
Program Manager or
Administrator which was then subsequently displayed on a page. If I remove the
meta_query and simply query the
program_manager role then it works fine, but I still need to include the administrator in this count. What has changed?