Changeset 36251 for trunk/src/wp-includes/query.php
- Timestamp:
- 01/10/2016 03:25:15 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r36138 r36251 2269 2269 } 2270 2270 2271 $search_orderby = ' (CASE';2271 $search_orderby = ''; 2272 2272 2273 2273 // sentence match in 'post_title' … … 2290 2290 $search_orderby .= $wpdb->prepare( "WHEN $wpdb->posts.post_content LIKE %s THEN 4 ", $like ); 2291 2291 } 2292 $search_orderby .= 'ELSE 5 END)'; 2292 2293 if ( $search_orderby ) { 2294 $search_orderby = '(CASE ' . $search_orderby . 'ELSE 5 END)'; 2295 } 2293 2296 } else { 2294 2297 // single word or sentence search
Note: See TracChangeset
for help on using the changeset viewer.