From 7b015d507dbe60aac43dba4a68368f43f96f909d Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 16 Dec 2014 10:06:24 +0000 Subject: [PATCH] Update/add plugin recommendation strings. Update [30887], add a translation function to the Vine string. fixes #30337. see #30435. Built from https://develop.svn.wordpress.org/trunk@30889 git-svn-id: http://core.svn.wordpress.org/trunk@30879 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/about.php | 4 ++-- wp-admin/includes/plugin-install.php | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/wp-admin/about.php b/wp-admin/about.php index 12aaf70ad6..95a29ad3bd 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -100,7 +100,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

-

full list of supported embeds.' ), 'http://codex.wordpress.org/Embeds' ); ?>

+

full list of supported embeds.' ), 'http://codex.wordpress.org/Embeds' ); ?>

@@ -113,7 +113,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );

plugin installer now offers a list of plugins you may want to try, based on others who have similar plugins installed as you.' ); + $string = __( 'The plugin installer suggests plugins for you to try. Recommendations are based on the plugins you and other users have installed.' ); if ( ! current_user_can( 'install_plugins' ) ) { $string = strip_tags( $string ); } diff --git a/wp-admin/includes/plugin-install.php b/wp-admin/includes/plugin-install.php index 6acc298f34..0486030342 100644 --- a/wp-admin/includes/plugin-install.php +++ b/wp-admin/includes/plugin-install.php @@ -235,8 +235,15 @@ function install_plugins_favorites_form() { function display_plugins_table() { global $wp_list_table; - if ( current_filter() == 'install_plugins_favorites' && empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) { - return; + switch ( current_filter() ) { + case 'install_plugins_favorites' : + if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) { + return; + } + break; + case 'install_plugins_recommended' : + echo '

' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '

'; + break; } ?>