WordPress.org

Make WordPress Core

Ticket #17775: users.php.patch

File users.php.patch, 582 bytes (added by layotte, 4 years ago)
  • user.php

     
    849849                // Build a CPU-intensive query that will return concise information. 
    850850                $select_count = array(); 
    851851                foreach ( $avail_roles as $this_role => $name ) { 
    852                         $select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%" . like_escape($this_role) . "%', FALSE))"; 
     852                        $select_count[] = "COUNT(NULLIF(`meta_value` LIKE '%\"" . like_escape($this_role) . "\"%', FALSE))"; 
    853853                } 
    854854                $select_count = implode(', ', $select_count); 
    855855