Make WordPress Core


Ignore:
Timestamp:
01/06/2012 05:53:41 PM (15 years ago)
Author:
nacin
Message:

Create a network/about.php page and leverage it, to prevent the dashboard from switching to the blog admin. fixes #19762.

File:
1 edited

Legend:

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

    r19663 r19699  
    1414list( $display_version ) = explode( '-', $wp_version );
    1515
    16 include( './admin-header.php' );
     16include( ABSPATH . 'wp-admin/admin-header.php' );
    1717?>
    1818<div class="wrap about-wrap">
     
    3939        <div class="feature-section images-stagger-right">
    4040                <div class="feature-images">
    41                         <img src="images/screenshots/media-icon.png" width="200" class="angled-right" />
    42                         <img src="images/screenshots/drag-and-drop.png" width="200" class="angled-left" />
     41                        <img src="<?php echo admin_url( 'images/screenshots/media-icon.png' ); ?>" width="200" class="angled-right" />
     42                        <img src="<?php echo admin_url( 'images/screenshots/drag-and-drop.png' ); ?>" width="200" class="angled-left" />
    4343                </div>
    4444                <div class="left-feature">
     
    7070        <div class="feature-section screenshot-features">
    7171                <div class="angled-left">
    72                         <img src="images/screenshots/admin-flyouts.png" />
     72                        <img src="<?php echo admin_url( 'images/screenshots/admin-flyouts.png' ); ?>" />
    7373                        <h4><?php _e( 'Responsive Design' ); ?></h4>
    7474                        <p><?php _e( 'Certain dashboard screens have been updated to look better at various sizes, including improved iPad/tablet support.' ); ?></p>
    7575                </div>
    7676                <div class="angled-right">
    77                         <img src="images/screenshots/help-screen.png" />
     77                        <img src="<?php echo admin_url( 'images/screenshots/help-screen.png' ); ?>" />
    7878                        <h4><?php _e( 'Help Tabs' ); ?></h4>
    7979                        <p><?php _e( 'The Help tabs located in the upper corner of the dashboard screens below your name have gotten a facelift. Help content is broken into smaller sections for easier access, with links to relevant documentation and the support forums always visible.' ); ?></p>
     
    8787        <div class="feature-section images-stagger-right">
    8888                <div class="feature-images">
    89                         <img src="images/screenshots/new-feature-pointer.png" class="angled-right" />
    90                         <img src="images/screenshots/welcome-screen.png" class="angled-left" />
     89                        <img src="<?php echo admin_url( 'images/screenshots/new-feature-pointer.png' ); ?>" class="angled-right" />
     90                        <img src="<?php echo admin_url( 'images/screenshots/welcome-screen.png' ); ?>" class="angled-left" />
    9191                </div>
    9292                <div class="left-feature">
     
    110110                <div>
    111111                        <h4><?php _e( 'Better Co-Editing' ); ?></h4>
    112                         <img src="images/screenshots/coediting.png" class="element-screenshot" />
     112                        <img src="<?php echo admin_url( 'images/screenshots/coediting.png' ); ?>" class="element-screenshot" />
    113113                        <p><?php _e( 'Have you ever gone to edit a post after someone else has finished with it, only to get an alert that tells you the other person is still editing the post? From now on, you&#8217;ll only get that alert if another person is still on the editing screen &mdash; no more time lag.' ); ?></p>
    114114                </div>
     
    162162<div class="return-to-dashboard">
    163163        <?php if ( current_user_can( 'update_core' ) && isset( $_GET['updated'] ) ) : ?>
    164         <a href="<?php echo esc_url( network_admin_url( 'update-core.php' ) ); ?>"><?php
     164        <a href="<?php echo esc_url( self_admin_url( 'update-core.php' ) ); ?>"><?php
    165165                is_multisite() ? _e( 'Return to Updates' ) : _e( 'Return to Dashboard &rarr; Updates' );
    166166        ?></a> |
    167167        <?php endif; ?>
    168         <a href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Go to Dashboard &rarr; Home' ); ?></a>
     168        <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
     169                is_network_admin() ? _e( 'Go to Dashboard' ) : _e( 'Go to Dashboard &rarr; Home' ); ?></a>
    169170</div>
    170171
     
    172173<?php
    173174
    174 include( './admin-footer.php' );
     175include( ABSPATH . 'wp-admin/admin-footer.php' );
    175176
    176177// These are strings we may use to describe maintenance/security releases, where we aim for no new strings.
Note: See TracChangeset for help on using the changeset viewer.