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 {
|
} 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(
|
||||||
'name' => $tag['name'],
|
'link' => esc_url( $url ),
|
||||||
'id' => sanitize_title_with_dashes($tag['name']),
|
'name' => $tag['name'],
|
||||||
'count' => $tag['count'] );
|
'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 wp_generate_tag_cloud($tags, array( 'single_text' => __('%s plugin'), 'multiple_text' => __('%s plugins') ) );
|
||||||
}
|
}
|
||||||
echo '</p><br class="clear" />';
|
echo '</p><br class="clear" />';
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue