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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-01-06 18:08:45 +00:00
parent aa6c34ac3e
commit f9b554814e
8 changed files with 45 additions and 6 deletions

View File

@ -166,7 +166,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
?></a> |
<?php endif; ?>
<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>

View File

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

View File

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

View File

@ -4,7 +4,7 @@
*
* @package WordPress
* @subpackage Multisite
* @since 3.1.0
* @since 3.4.0
*/
/** 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(
'id' => 'wp-logo',
'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(
'title' => __('About WordPress'),
),
@ -87,7 +87,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
'parent' => 'wp-logo',
'id' => 'about',
'title' => __('About WordPress'),
'href' => is_network_admin() ? network_admin_url( 'about.php' ) : admin_url( 'about.php' ),
'href' => self_admin_url( 'about.php' ),
) );
}