WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/01/2011 04:38:51 AM (9 years ago)
Author:
nacin
Message:

Finalize the code which redirects to about.php after a core update. Only triggers on update-core.php in case wp_update_core() is called in a different context.
props ocean90 for initial patch. fixes #18467.

File:
1 edited

Legend:

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

    r19498 r19524  
    161161
    162162<div class="return-to-dashboard">
    163     <?php if ( current_user_can( 'update_core' ) && isset( $_GET['upgraded'] ) ) : ?>
    164     <a href="<?php echo esc_url( admin_url( 'update-core.php' ) ); ?>"><?php _e( 'Return to Dashboard &rarr; Updates' ); ?></a> |
     163    <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
     164    <a href="<?php echo esc_url( network_admin_url( 'update-core.php' ) ); ?>"><?php
     165        is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
     166    ?></a> |
    165167    <?php endif; ?>
    166168    <a href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Go to Dashboard &rarr; Home' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.