diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index fffc05f986..defc36cd8e 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1712,6 +1712,9 @@ function get_terms( $taxonomies, $args = '' ) { $orderby = 't.name'; } else if ( 'slug' == $_orderby ) { $orderby = 't.slug'; + } else if ( 'include' == $_orderby && ! empty( $args['include'] ) ) { + $include = implode( ',', array_map( 'absint', $args['include'] ) ); + $orderby = "FIELD( t.term_id, $include )"; } else if ( 'term_group' == $_orderby ) { $orderby = 't.term_group'; } else if ( 'none' == $_orderby ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index b13b017298..b58c753fb1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30051'; +$wp_version = '4.1-alpha-30052'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.