Making WordPress.org

Changeset 3445


Ignore:
Timestamp:
06/18/2016 04:16:49 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Make total number of plugins dynamic.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php

    r3441 r3445  
    1111
    1212namespace WordPressdotorg\Plugin_Directory\Theme;
     13use WordPressdotorg\Plugin_Directory\Template;
    1314
    1415$menu_items = array(
     
    3334
    3435            <?php if ( is_home() ) : ?>
    35                 <p class="site-description"><?php _e( 'Extend your WordPress experience with 45,000 plugins.', 'wporg-plugins' ); ?></p>
     36                <p class="site-description">
     37                    <?php
     38                    /* Translators: Total number of plugins. */
     39                    printf( __( 'Extend your WordPress experience with %s plugins.', 'wporg-plugins' ), number_format_i18n( Template::get_total_downloads() ) );
     40                    ?>
     41                </p>
    3642                <?php get_search_form(); ?>
    3743            <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.