equal
deleted
inserted
replaced
238 * Retrieve popular WordPress plugin tags. |
238 * Retrieve popular WordPress plugin tags. |
239 * |
239 * |
240 * @since 2.7.0 |
240 * @since 2.7.0 |
241 * |
241 * |
242 * @param array $args |
242 * @param array $args |
243 * @return array |
243 * @return array|WP_Error |
244 */ |
244 */ |
245 function install_popular_tags( $args = array() ) { |
245 function install_popular_tags( $args = array() ) { |
246 $key = md5( serialize( $args ) ); |
246 $key = md5( serialize( $args ) ); |
247 $tags = get_site_transient( 'poptags_' . $key ); |
247 $tags = get_site_transient( 'poptags_' . $key ); |
248 if ( false !== $tags ) { |
248 if ( false !== $tags ) { |
687 printf( |
687 printf( |
688 /* translators: %s: Number of millions. */ |
688 /* translators: %s: Number of millions. */ |
689 _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), |
689 _nx( '%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations' ), |
690 number_format_i18n( $active_installs_millions ) |
690 number_format_i18n( $active_installs_millions ) |
691 ); |
691 ); |
692 } elseif ( 0 == $api->active_installs ) { |
692 } elseif ( $api->active_installs < 10 ) { |
693 _ex( 'Less Than 10', 'Active plugin installations' ); |
693 _ex( 'Less Than 10', 'Active plugin installations' ); |
694 } else { |
694 } else { |
695 echo number_format_i18n( $api->active_installs ) . '+'; |
695 echo number_format_i18n( $api->active_installs ) . '+'; |
696 } |
696 } |
697 ?> |
697 ?> |
878 } |
878 } |
879 } |
879 } |
880 break; |
880 break; |
881 case 'newer_installed': |
881 case 'newer_installed': |
882 /* translators: %s: Plugin version. */ |
882 /* translators: %s: Plugin version. */ |
883 echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), $status['version'] ) . '</a>'; |
883 echo '<a class="button button-primary right disabled">' . sprintf( __( 'Newer Version (%s) Installed' ), esc_html( $status['version'] ) ) . '</a>'; |
884 break; |
884 break; |
885 case 'latest_installed': |
885 case 'latest_installed': |
886 echo '<a class="button button-primary right disabled">' . __( 'Latest Version Installed' ) . '</a>'; |
886 echo '<a class="button button-primary right disabled">' . __( 'Latest Version Installed' ) . '</a>'; |
887 break; |
887 break; |
888 } |
888 } |