Ticket #40186: 40186.diff
File 40186.diff, 3.1 KB (added by , 7 years ago) |
---|
-
src/wp-admin/includes/plugin-install.php
233 233 function install_dashboard() { 234 234 ?> 235 235 <p><?php printf( __( 'Plugins extend and expand the functionality of WordPress. You may automatically install plugins from the <a href="%1$s">WordPress Plugin Directory</a> or upload a plugin in .zip format by clicking the button at the top of this page.' ), __( 'https://wordpress.org/plugins/' ) ); ?></p> 236 237 <?php display_plugins_table(); ?>238 239 <div class="plugins-popular-tags-wrapper">240 <h2><?php _e( 'Popular tags' ) ?></h2>241 <p><?php _e( 'You may also browse based on the most popular tags in the Plugin Directory:' ) ?></p>242 236 <?php 243 244 $api_tags = install_popular_tags(); 245 246 echo '<p class="popular-tags">'; 247 if ( is_wp_error($api_tags) ) { 248 echo $api_tags->get_error_message(); 249 } else { 250 //Set up the tags in a way which can be interpreted by wp_generate_tag_cloud() 251 $tags = array(); 252 foreach ( (array) $api_tags as $tag ) { 253 $url = self_admin_url( 'plugin-install.php?tab=search&type=tag&s=' . urlencode( $tag['name'] ) ); 254 $data = array( 255 'link' => esc_url( $url ), 256 'name' => $tag['name'], 257 'slug' => $tag['slug'], 258 'id' => sanitize_title_with_dashes( $tag['name'] ), 259 'count' => $tag['count'] 260 ); 261 $tags[ $tag['name'] ] = (object) $data; 262 } 263 echo wp_generate_tag_cloud($tags, array( 'single_text' => __('%s plugin'), 'multiple_text' => __('%s plugins') ) ); 264 } 265 echo '</p><br class="clear" /></div>'; 237 display_plugins_table(); 266 238 } 267 239 268 240 /** -
src/wp-admin/plugin-install.php
87 87 'id' => 'adding-plugins', 88 88 'title' => __('Adding Plugins'), 89 89 'content' => 90 '<p>' . __( 'If you know what you’re looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag. You can also search the directory by selecting popular tags. Tags in larger type mean more plugins have been labeled with that tag.') . '</p>' .90 '<p>' . __( 'If you know what you’re looking for, Search is your best bet. The Search screen has options to search the WordPress Plugin Directory for a particular Term, Author, or Tag.' ) . '</p>' . 91 91 '<p>' . __( 'If you just want to get an idea of what’s available, you can browse Featured and Popular plugins by using the links above the plugins list. These sections rotate regularly.' ) . '</p>' . 92 92 '<p>' . __( 'You can also browse a user’s favorite plugins, by using the Favorites link above the plugins list and entering their WordPress.org username.' ) . '</p>' . 93 93 '<p>' . __( 'If you want to install a plugin that you’ve downloaded elsewhere, click the Upload Plugin button above the plugins list. You will be prompted to upload the .zip package, and once uploaded, you can activate the new plugin.' ) . '</p>'