In install_dashboard()
(plugin-install
, FWIW), make sure slug
is populated and degrease the unfortunate whitespace that was present.
Props tyxla. Fixes #32889. git-svn-id: https://develop.svn.wordpress.org/trunk@33114 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
312f5179cb
commit
a297e1532e
@ -151,12 +151,17 @@ function install_dashboard() {
|
|||||||
} else {
|
} else {
|
||||||
//Set up the tags in a way which can be interpreted by wp_generate_tag_cloud()
|
//Set up the tags in a way which can be interpreted by wp_generate_tag_cloud()
|
||||||
$tags = array();
|
$tags = array();
|
||||||
foreach ( (array)$api_tags as $tag )
|
foreach ( (array) $api_tags as $tag ) {
|
||||||
$tags[ $tag['name'] ] = (object) array(
|
$url = self_admin_url( 'plugin-install.php?tab=search&type=tag&s=' . urlencode( $tag['name'] ) );
|
||||||
'link' => esc_url( self_admin_url('plugin-install.php?tab=search&type=tag&s=' . urlencode($tag['name'])) ),
|
$data = array(
|
||||||
|
'link' => esc_url( $url ),
|
||||||
'name' => $tag['name'],
|
'name' => $tag['name'],
|
||||||
'id' => sanitize_title_with_dashes($tag['name']),
|
'slug' => $tag['slug'],
|
||||||
'count' => $tag['count'] );
|
'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 wp_generate_tag_cloud($tags, array( 'single_text' => __('%s plugin'), 'multiple_text' => __('%s plugins') ) );
|
||||||
}
|
}
|
||||||
echo '</p><br class="clear" />';
|
echo '</p><br class="clear" />';
|
||||||
|
Loading…
Reference in New Issue
Block a user