[wp-trac] [WordPress Trac] #53031: Display counts for available plugin and theme updates on update-core.php

WordPress Trac noreply at wordpress.org
Sat Apr 17 00:14:55 UTC 2021


#53031: Display counts for available plugin and theme updates on update-core.php
-----------------------------+---------------------------------
 Reporter:  sabernhardt      |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:
 Severity:  minor            |  Resolution:
 Keywords:  has-patch        |     Focuses:  ui, administration
-----------------------------+---------------------------------

Comment (by sabernhardt):

 Thank you both for the quick feedback.

 The variable names include "count" and the PHP combines heading text with
 the count. I also used the number format function in case it's necessary.

 Would it be easier to read the `printf` with the heading tag inside there,
 too?
 {{{
         $themes_count = count( $themes );

         printf(
                 '<h2>%s <span class="count">(%d)</span></h2>',
                 __( 'Themes' ),
                 number_format_i18n( $themes_count )
         );
         ?>
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53031#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list