diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index cd5b92a345..5f5127ac10 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1604,7 +1604,7 @@ function get_terms( $taxonomies, $args = '' ) { } if ( $number && is_array( $terms ) && count( $terms ) > $number ) { - $terms = array_slice( $terms, $offset, $number ); + $terms = array_slice( $terms, $offset, $number, true ); } wp_cache_add( $cache_key, $terms, 'terms', DAY_IN_SECONDS ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4cca1d3c2d..52ac58d4fc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36251'; +$wp_version = '4.5-alpha-36252'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.