Make WordPress Core

Ticket #25881: upgrade.diff

File upgrade.diff, 1.6 KB (added by miyauchi, 10 years ago)
  • src/wp-admin/network/upgrade.php

     
    6868                        $response = wp_remote_get( $upgrade_url, array( 'timeout' => 120, 'httpversion' => '1.1' ) );
    6969                        if ( is_wp_error( $response ) )
    7070                                wp_die( sprintf( __( 'Warning! Problem updating %1$s. Your server may not be able to connect to sites running on it. Error message: <em>%2$s</em>' ), $siteurl, $response->get_error_message() ) );
     71                        /**
     72                         * Fires after multisite upgrade.
     73                         *
     74                         * @since MU
     75                         *
     76                         * @param object $response The response from upgrade.php or WP_Error on failure.
     77                         */
    7178                        do_action( 'after_mu_upgrade', $response );
    72                         do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] );
     79                        /**
     80                         * Fires after the after_mu_upgrade hook.
     81                         *
     82                         * @since MU
     83                         *
     84                         * @param int $details['blog_id'] The id of the blog.
     85                         */
     86                        do_action( 'wpmu_upgrade_site', $details['blog_id'] );
    7387                }
    7488                echo "</ul>";
    7589                ?><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>
     
    93107                <p><?php _e( 'The database upgrade process may take a little while, so please be patient.' ); ?></p>
    94108                <p><a class="button" href="upgrade.php?action=upgrade"><?php _e( 'Upgrade Network' ); ?></a></p>
    95109                <?php
     110                /**
     111                 * Fires before footer in the network upgrade page.
     112                 *
     113                 * @since MU
     114                 */
    96115                do_action( 'wpmu_upgrade_page' );
    97116        break;
    98117}