Make WordPress Core

Ticket #37799: 37799.diff

File 37799.diff, 1.5 KB (added by danhgilmore, 9 years ago)

Added "Upgrading sites X - Y of Total"

  • upgrade.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: C:\xampp\htdocs\blogs\wp-admin\network
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    1818$title = __( 'Upgrade Network' );
    1919$parent_file = 'upgrade.php';
    2020
     21$total_sites = get_blog_count();
     22
    2123get_current_screen()->add_help_tab( array(
    2224        'id'      => 'overview',
    2325        'title'   => __('Overview'),
     
    9799                        do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] );
    98100                }
    99101                echo "</ul>";
    100                 ?><p><?php _e( 'If your browser doesn&#8217;t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p>
     102               
     103                $sites_left = $total_sites - $n;
     104                $x = $n - 4;
     105               
     106                ?>
     107                <p><?php _e('Upgrading sites ' . $x . '-' . $n .' out of ' . $total_sites);?></p>
     108                <p><?php _e( 'If your browser doesn&#8217;t start loading the next page automatically, click this link:' ); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo ($n + 5) ?>"><?php _e("Next Sites"); ?></a></p>
    101109                <script type="text/javascript">
    102110                <!--
    103111                function nextpage() {