mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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
This commit is contained in:
parent
2cc8269741
commit
0deed4b842
@ -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 '</p><br class="clear" />';
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user