Make WordPress Core

Changeset 26914


Ignore:
Timestamp:
01/07/2014 04:22:14 AM (11 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/network/upgrade.php.

Props miyauchi for the initial patch.
Fixes #25881.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin.php

    r25747 r26914  
    6767            require_once( ABSPATH . WPINC . '/http.php' );
    6868            $response = wp_remote_get( admin_url( 'upgrade.php?step=1' ), array( 'timeout' => 120, 'httpversion' => '1.1' ) );
    69             /**
    70              * Fires after the multisite DB upgrade is complete.
    71              *
    72              * @since 3.0.0
    73              *
    74              * @param array|WP_Error $response The upgrade response array or WP_Error on failure.
    75              */
     69            /** This action is documented in wp-admin/network/upgrade.php */
    7670            do_action( 'after_mu_upgrade', $response );
    7771            unset($response);
  • trunk/src/wp-admin/network/upgrade.php

    r26518 r26914  
    6868            if ( is_wp_error( $response ) )
    6969                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() ) );
     70            /**
     71             * Fires after the Multisite DB upgrade for each site is complete.
     72             *
     73             * @since MU
     74             *
     75             * @param array|WP_Error $response The upgrade response array or WP_Error on failure.
     76             */
    7077            do_action( 'after_mu_upgrade', $response );
     78            /**
     79             * Fires after each site has been upgraded.
     80             *
     81             * @since MU
     82             *
     83             * @param int $blog_id The id of the blog.
     84             */
    7185            do_action( 'wpmu_upgrade_site', $details[ 'blog_id' ] );
    7286        }
     
    93107        <p><a class="button" href="upgrade.php?action=upgrade"><?php _e( 'Upgrade Network' ); ?></a></p>
    94108        <?php
     109        /**
     110         * Fires before the footer on the network upgrade screen.
     111         *
     112         * @since MU
     113         */
    95114        do_action( 'wpmu_upgrade_page' );
    96115    break;
Note: See TracChangeset for help on using the changeset viewer.