diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php
index 68cd74c8e5..971434baf2 100644
--- a/wp-includes/category-template.php
+++ b/wp-includes/category-template.php
@@ -904,7 +904,8 @@ function wp_generate_tag_cloud( $tags, $args = '' ) {
// generate the output links array
foreach ( $tags_data as $key => $tag_data ) {
- $a[] = "" . esc_html( $tag_data['name'] ) . "";
+ $class = $tag_data['class'] . ' tag-link-position-' . ( $key + 1 );
+ $a[] = "" . esc_html( $tag_data['name'] ) . "";
}
switch ( $args['format'] ) {
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 56f5e35e0a..71e991cb6e 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.5-alpha-35983';
+$wp_version = '4.5-alpha-35984';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.