Changeset 41769 for trunk/src/wp-includes/class-wp-term-query.php
- Timestamp:
- 10/05/2017 02:27:02 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r41760 r41769 845 845 $orderby = "FIELD( t.term_id, $include )"; 846 846 } elseif ( 'slug__in' == $_orderby && ! empty( $this->query_vars['slug'] ) && is_array( $this->query_vars['slug'] ) ) { 847 $slugs = implode( "', '", array_map( 'sanitize_title_for_query', $this->query_vars['slug __in'] ) );847 $slugs = implode( "', '", array_map( 'sanitize_title_for_query', $this->query_vars['slug'] ) ); 848 848 $orderby = "FIELD( t.slug, '" . $slugs . "')"; 849 849 } elseif ( 'none' == $_orderby ) {
Note: See TracChangeset
for help on using the changeset viewer.