diff -r 34716fd837a4 -r be944660c56a wp/wp-admin/includes/plugin-install.php --- a/wp/wp-admin/includes/plugin-install.php Tue Dec 15 15:52:01 2020 +0100 +++ b/wp/wp-admin/includes/plugin-install.php Wed Sep 21 18:19:35 2022 +0200 @@ -240,7 +240,7 @@ * @since 2.7.0 * * @param array $args - * @return array + * @return array|WP_Error */ function install_popular_tags( $args = array() ) { $key = md5( serialize( $args ) ); @@ -689,7 +689,7 @@ _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), number_format_i18n( $active_installs_millions ) ); - } elseif ( 0 == $api->active_installs ) { + } elseif ( $api->active_installs < 10 ) { _ex( 'Less Than 10', 'Active plugin installations' ); } else { echo number_format_i18n( $api->active_installs ) . '+'; @@ -880,7 +880,7 @@ break; case 'newer_installed': /* translators: %s: Plugin version. */ - echo '' . sprintf( __( 'Newer Version (%s) Installed' ), $status['version'] ) . ''; + echo '' . sprintf( __( 'Newer Version (%s) Installed' ), esc_html( $status['version'] ) ) . ''; break; case 'latest_installed': echo '' . __( 'Latest Version Installed' ) . '';