Make WordPress Core


Ignore:
Timestamp:
12/16/2014 10:05:09 AM (10 years ago)
Author:
nacin
Message:

Update/add plugin recommendation strings.

Update [30887], add a translation function to the Vine string.

fixes #30337. see #30435.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r30782 r30889  
    236236    global $wp_list_table;
    237237
    238     if ( current_filter() == 'install_plugins_favorites' && empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) {
    239         return;
     238    switch ( current_filter() ) {
     239        case 'install_plugins_favorites' :
     240            if ( empty( $_GET['user'] ) && ! get_user_option( 'wporg_favorites' ) ) {
     241                return;
     242            }
     243            break;
     244        case 'install_plugins_recommended' :
     245            echo '<p>' . __( 'These suggestions are based on the plugins you and other users have installed.' ) . '</p>';
     246            break;
    240247    }
    241248
Note: See TracChangeset for help on using the changeset viewer.