From a5ada1a5373b3a2f3a9987f732250b33fc710398 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 6 Jan 2012 18:08:45 +0000 Subject: [PATCH] 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 --- wp-admin/about.php | 2 +- wp-admin/network/about.php | 2 +- wp-admin/network/credits.php | 2 +- wp-admin/network/freedoms.php | 2 +- wp-admin/user/about.php | 13 +++++++++++++ wp-admin/user/credits.php | 13 +++++++++++++ wp-admin/user/freedoms.php | 13 +++++++++++++ wp-includes/admin-bar.php | 4 ++-- 8 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 wp-admin/user/about.php create mode 100644 wp-admin/user/credits.php create mode 100644 wp-admin/user/freedoms.php diff --git a/wp-admin/about.php b/wp-admin/about.php index 6a9c646f59..1f8fe6cccd 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -166,7 +166,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); ?> | + is_blog_admin() ? _e( 'Go to Dashboard → Home' ) : _e( 'Go to Dashboard' ); ?> diff --git a/wp-admin/network/about.php b/wp-admin/network/about.php index 93776fb6ed..e8bbe999d0 100644 --- a/wp-admin/network/about.php +++ b/wp-admin/network/about.php @@ -4,7 +4,7 @@ * * @package WordPress * @subpackage Multisite - * @since 3.1.0 + * @since 3.4.0 */ /** Load WordPress Administration Bootstrap */ diff --git a/wp-admin/network/credits.php b/wp-admin/network/credits.php index 8fefdc44b6..82caa3ad08 100644 --- a/wp-admin/network/credits.php +++ b/wp-admin/network/credits.php @@ -4,7 +4,7 @@ * * @package WordPress * @subpackage Multisite - * @since 3.1.0 + * @since 3.4.0 */ /** Load WordPress Administration Bootstrap */ diff --git a/wp-admin/network/freedoms.php b/wp-admin/network/freedoms.php index b500fcd6dd..a15a4c3fd3 100644 --- a/wp-admin/network/freedoms.php +++ b/wp-admin/network/freedoms.php @@ -4,7 +4,7 @@ * * @package WordPress * @subpackage Multisite - * @since 3.1.0 + * @since 3.4.0 */ /** Load WordPress Administration Bootstrap */ diff --git a/wp-admin/user/about.php b/wp-admin/user/about.php new file mode 100644 index 0000000000..a5dbc9899f --- /dev/null +++ b/wp-admin/user/about.php @@ -0,0 +1,13 @@ +add_menu( array( 'id' => 'wp-logo', 'title' => '', - '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' ), ) ); }