From 0deed4b842725df59ba991a4a2f2fc74e820d941 Mon Sep 17 00:00:00 2001
From: Scott Taylor
Date: Tue, 7 Jul 2015 19:19:24 +0000
Subject: [PATCH] In `install_dashboard()` (`plugin-install`, FWIW), make sure
`slug` is populated and degrease the unfortunate whitespace that was present.
Props tyxla.
Fixes #32889.
Built from https://develop.svn.wordpress.org/trunk@33114
git-svn-id: http://core.svn.wordpress.org/trunk@33085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
---
wp-admin/includes/plugin-install.php | 17 +++++++++++------
wp-includes/version.php | 2 +-
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php
index a6dbabb0cc..ab776e8dd2 100644
--- a/wp-admin/includes/plugin-install.php
+++ b/wp-admin/includes/plugin-install.php
@@ -151,12 +151,17 @@ function install_dashboard() {
} else {
//Set up the tags in a way which can be interpreted by wp_generate_tag_cloud()
$tags = array();
- foreach ( (array)$api_tags as $tag )
- $tags[ $tag['name'] ] = (object) array(
- 'link' => esc_url( self_admin_url('plugin-install.php?tab=search&type=tag&s=' . urlencode($tag['name'])) ),
- 'name' => $tag['name'],
- 'id' => sanitize_title_with_dashes($tag['name']),
- 'count' => $tag['count'] );
+ foreach ( (array) $api_tags as $tag ) {
+ $url = self_admin_url( 'plugin-install.php?tab=search&type=tag&s=' . urlencode( $tag['name'] ) );
+ $data = array(
+ 'link' => esc_url( $url ),
+ 'name' => $tag['name'],
+ 'slug' => $tag['slug'],
+ 'id' => sanitize_title_with_dashes( $tag['name'] ),
+ 'count' => $tag['count']
+ );
+ $tags[ $tag['name'] ] = (object) $data;
+ }
echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%s plugin'), 'multiple_text' => __('%s plugins') ) );
}
echo '
';
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 68e9355337..aa6a25fb0c 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
-$wp_version = '4.3-beta1-33113';
+$wp_version = '4.3-beta1-33114';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.