Making WordPress.org

Changeset 13735

Timestamp:
05/20/2024 07:29:02 PM (2 months ago)
Author:
ryelle
Message:

wporg-plugins-2024: Use a rounded number for the plugins count in tagline.

See https://github.com/WordPress/wporg-theme-directory/issues/68#issuecomment-2115897450, closes https://github.com/WordPress/wordpress.org/pull/321.

File:
1 edited

Legend:

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

    r13437 r13735  
    66 */
    77
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
    820?>
    921
     
    2133
    2234        <!-- wp:paragraph {"style":{"typography":{"lineHeight":"2.3"}},"textColor":"white"} -->
    23         <p class="has-white-color has-text-color" style="line-height:2.3">
    24         <?php
    25             $plugin_count = wp_count_posts( 'plugin' )->publish;
    26             printf(
    27                 /* Translators: Total number of plugins. */
    28                 esc_html( _n( 'Extend your WordPress experience! Browse %s free plugin.', 'Extend your WordPress experience! Browse %s free plugins.', $plugin_count, 'wporg-plugins' ) ),
    29                 esc_html( number_format_i18n( $plugin_count ) )
    30             );
    31             ?>
    32         </p>
     35        <p class="has-white-color has-text-color" style="line-height:2.3"><?php echo esc_html( $description ); ?></p>
    3336        <!-- /wp:paragraph -->
    3437    </div>
Note: See TracChangeset for help on using the changeset viewer.