diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php
index c7f4543dcd..92d9368aa1 100644
|
a
|
b
|
function list_plugin_updates() { |
| 449 | 449 | } else { |
| 450 | 450 | $core_update_version = $core_updates[0]->current; |
| 451 | 451 | } |
| | 452 | |
| | 453 | $plugins_count = count( $plugins ); |
| | 454 | ?> |
| | 455 | <h2> |
| | 456 | <?php |
| | 457 | printf( |
| | 458 | /* translators: %d: Number of plugins to update. */ |
| | 459 | _n( |
| | 460 | 'Plugin (%d)', |
| | 461 | 'Plugins (%d)', |
| | 462 | $plugins_count |
| | 463 | ), |
| | 464 | number_format_i18n( $plugins_count ) |
| | 465 | ); |
| 452 | 466 | ?> |
| 453 | | <h2><?php _e( 'Plugins' ); ?></h2> |
| | 467 | </h2> |
| 454 | 468 | <p><?php _e( 'The following plugins have new versions available. Check the ones you want to update and then click “Update Plugins”.' ); ?></p> |
| 455 | 469 | <form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-plugins" class="upgrade"> |
| 456 | 470 | <?php wp_nonce_field( 'upgrade-core' ); ?> |
| … |
… |
function list_theme_updates() { |
| 602 | 616 | } |
| 603 | 617 | |
| 604 | 618 | $form_action = 'update-core.php?action=do-theme-upgrade'; |
| | 619 | |
| | 620 | $themes_count = count( $themes ); |
| 605 | 621 | ?> |
| 606 | | <h2><?php _e( 'Themes' ); ?></h2> |
| | 622 | <h2> |
| | 623 | <?php |
| | 624 | printf( |
| | 625 | /* translators: %d: Number of themes to update. */ |
| | 626 | _n( |
| | 627 | 'Theme (%d)', |
| | 628 | 'Themes (%d)', |
| | 629 | $themes_count |
| | 630 | ), |
| | 631 | number_format_i18n( $themes_count ) |
| | 632 | ); |
| | 633 | ?> |
| | 634 | </h2> |
| 607 | 635 | <p><?php _e( 'The following themes have new versions available. Check the ones you want to update and then click “Update Themes”.' ); ?></p> |
| 608 | 636 | <p> |
| 609 | 637 | <?php |
| … |
… |
function list_translation_updates() { |
| 768 | 796 | } |
| 769 | 797 | |
| 770 | 798 | $form_action = 'update-core.php?action=do-translation-upgrade'; |
| | 799 | |
| | 800 | $translations_count = count( $updates ); |
| 771 | 801 | ?> |
| 772 | | <h2><?php _e( 'Translations' ); ?></h2> |
| | 802 | <h2> |
| | 803 | <?php |
| | 804 | printf( |
| | 805 | /* translators: %d: Number of translation packages to update. */ |
| | 806 | _n( |
| | 807 | 'Translation package (%d)', |
| | 808 | 'Translation packages (%d)', |
| | 809 | $translations_count |
| | 810 | ), |
| | 811 | number_format_i18n( $translations_count ) |
| | 812 | ); |
| | 813 | ?> |
| | 814 | </h2> |
| 773 | 815 | <form method="post" action="<?php echo esc_url( $form_action ); ?>" name="upgrade-translations" class="upgrade"> |
| 774 | 816 | <p><?php _e( 'New translations are available.' ); ?></p> |
| 775 | 817 | <?php wp_nonce_field( 'upgrade-translations' ); ?> |