about.php and friends for the global dashboard. see #19762.

git-svn-id: https://develop.svn.wordpress.org/trunk@19700 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-01-06 18:08:45 +00:00
parent 5ccd02fb01
commit a5ada1a537
8 changed files with 45 additions and 6 deletions

View File

@ -166,7 +166,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
?></a> | ?></a> |
<?php endif; ?> <?php endif; ?>
<a href="<?php echo esc_url( self_admin_url() ); ?>"><?php <a href="<?php echo esc_url( self_admin_url() ); ?>"><?php
is_network_admin() ? _e( 'Go to Dashboard' ) : _e( 'Go to Dashboard &rarr; Home' ); ?></a> is_blog_admin() ? _e( 'Go to Dashboard &rarr; Home' ) : _e( 'Go to Dashboard' ); ?></a>
</div> </div>
</div> </div>

View File

@ -4,7 +4,7 @@
* *
* @package WordPress * @package WordPress
* @subpackage Multisite * @subpackage Multisite
* @since 3.1.0 * @since 3.4.0
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */

View File

@ -4,7 +4,7 @@
* *
* @package WordPress * @package WordPress
* @subpackage Multisite * @subpackage Multisite
* @since 3.1.0 * @since 3.4.0
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */

View File

@ -4,7 +4,7 @@
* *
* @package WordPress * @package WordPress
* @subpackage Multisite * @subpackage Multisite
* @since 3.1.0 * @since 3.4.0
*/ */
/** Load WordPress Administration Bootstrap */ /** Load WordPress Administration Bootstrap */

13
wp-admin/user/about.php Normal file
View File

@ -0,0 +1,13 @@
<?php
/**
* User Dashboard About administration panel.
*
* @package WordPress
* @subpackage Administration
* @since 3.4.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require( '../about.php' );

13
wp-admin/user/credits.php Normal file
View File

@ -0,0 +1,13 @@
<?php
/**
* User Dashboard Credits administration panel.
*
* @package WordPress
* @subpackage Administration
* @since 3.4.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require( '../credits.php' );

View File

@ -0,0 +1,13 @@
<?php
/**
* User Dashboard Freedoms administration panel.
*
* @package WordPress
* @subpackage Administration
* @since 3.4.0
*/
/** Load WordPress Administration Bootstrap */
require_once( './admin.php' );
require( '../freedoms.php' );

View File

@ -75,7 +75,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
$wp_admin_bar->add_menu( array( $wp_admin_bar->add_menu( array(
'id' => 'wp-logo', 'id' => 'wp-logo',
'title' => '<span class="ab-icon"></span>', 'title' => '<span class="ab-icon"></span>',
'href' => is_network_admin() ? network_admin_url( 'about.php' ) : admin_url( 'about.php' ), 'href' => self_admin_url( 'about.php' ),
'meta' => array( 'meta' => array(
'title' => __('About WordPress'), 'title' => __('About WordPress'),
), ),
@ -87,7 +87,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
'parent' => 'wp-logo', 'parent' => 'wp-logo',
'id' => 'about', 'id' => 'about',
'title' => __('About WordPress'), 'title' => __('About WordPress'),
'href' => is_network_admin() ? network_admin_url( 'about.php' ) : admin_url( 'about.php' ), 'href' => self_admin_url( 'about.php' ),
) ); ) );
} }