Make WordPress Core

Ticket #53031: 53031.patch

File 53031.patch, 1.2 KB (added by sabernhardt, 4 years ago)
  • src/wp-admin/update-core.php

     
    449449        } else {
    450450                $core_update_version = $core_updates[0]->current;
    451451        }
     452       
     453        $plugins_available = count( $plugins );
    452454        ?>
    453 <h2><?php _e( 'Plugins' ); ?></h2>
     455<h2>
     456<?php
     457        _e( 'Plugins' );
     458        printf(
     459                ' <span class="count">(%d)</span>',
     460                $plugins_available
     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_available = count( $themes );
    605617        ?>
    606 <h2><?php _e( 'Themes' ); ?></h2>
     618<h2>
     619<?php
     620        _e( 'Themes' );
     621        printf(
     622                ' <span class="count">(%d)</span>',
     623                $themes_available
     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