WordPress.org

Make WordPress Core

Ticket #12693: 12693.diff

File 12693.diff, 613 bytes (added by scribu, 3 years ago)

Refreshed patch by 082net on #16556

  • wp-includes/user.php

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