WordPress.org

Make WordPress Core

Ticket #53031: 53031.1.patch

File 53031.1.patch, 1.3 KB (added by sabernhardt, 5 months ago)
  • src/wp-admin/update-core.php

     
    449449        } else {
    450450                $core_update_version = $core_updates[0]->current;
    451451        }
     452
     453        $plugins_count = count( $plugins );
    452454        ?>
    453 <h2><?php _e( 'Plugins' ); ?></h2>
     455<h2>
     456        <?php
     457        printf(
     458                '%s <span class="count">(%d)</span>',
     459                __( 'Plugins' ),
     460                number_format_i18n( $plugins_count )
     461        );
     462        ?>
     463</h2>
    454464<p><?php _e( 'The following plugins have new versions available. Check the ones you want to update and then click &#8220;Update Plugins&#8221;.' ); ?></p>
    455465<form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-plugins" class="upgrade">
    456466        <?php wp_nonce_field( 'upgrade-core' ); ?>
     
    602612        }
    603613
    604614        $form_action = 'update-core.php?action=do-theme-upgrade';
     615
     616        $themes_count = count( $themes );
    605617        ?>
    606 <h2><?php _e( 'Themes' ); ?></h2>
     618<h2>
     619        <?php
     620        printf(
     621                '%s <span class="count">(%d)</span>',
     622                __( 'Themes' ),
     623                number_format_i18n( $themes_count )
     624        );
     625        ?>
     626</h2>
    607627<p><?php _e( 'The following themes have new versions available. Check the ones you want to update and then click &#8220;Update Themes&#8221;.' ); ?></p>
    608628<p>
    609629        <?php