Changeset 44456 for trunk/src/wp-includes/class-wp-query.php
- Timestamp:
- 01/08/2019 04:31:56 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-query.php
r44452 r44456 1621 1621 case 'post_name__in': 1622 1622 if ( ! empty( $this->query_vars['post_name__in'] ) ) { 1623 $post_name__in = array_map( 'sanitize_title_for_query', $this->query_vars['post_name__in'] );1623 $post_name__in = array_map( 'sanitize_title_for_query', $this->query_vars['post_name__in'] ); 1624 1624 $post_name__in_string = "'" . implode( "','", $post_name__in ) . "'"; 1625 $orderby_clause = "FIELD( {$wpdb->posts}.post_name," . $post_name__in_string . ' )';1625 $orderby_clause = "FIELD( {$wpdb->posts}.post_name," . $post_name__in_string . ' )'; 1626 1626 } 1627 1627 break;
Note: See TracChangeset
for help on using the changeset viewer.