Ticket #13992: 13992.diff
File 13992.diff, 675 bytes (added by , 14 years ago) |
---|
-
taxonomy.php
953 953 $where .= " AND t.slug = '$slug'"; 954 954 } 955 955 956 if ( !empty($name__like) ) 956 if ( !empty($name__like) ) { 957 $name__like = like_escape($name__like); 957 958 $where .= " AND t.name LIKE '{$name__like}%'"; 959 } 958 960 959 961 if ( '' !== $parent ) { 960 962 $parent = (int) $parent; … … 976 978 977 979 if ( !empty($search) ) { 978 980 $search = like_escape($search); 979 $where .= " AND ( t.name LIKE '%$search%')";981 $where .= " AND ((t.name LIKE '%$search%') OR (t.slug LIKE '%$search%'))"; 980 982 } 981 983 982 984 $selects = array();