diff --git wp-admin/admin-header.php wp-admin/admin-header.php
index ac79340..736bc8e 100644
|
|
if ( is_multisite() && is_super_admin() ) { |
153 | 153 | if ( !is_network_admin() ) |
154 | 154 | $links[10] = '| <a href="' . network_admin_url() . '" title="' . ( ! empty( $update_title ) ? $update_title : esc_attr__('Network Admin') ) . '">' . __('Network Admin') . ( ! empty( $total_update_count ) ? ' (' . number_format_i18n( $total_update_count ) . ')' : '' ) . '</a>'; |
155 | 155 | else |
156 | | $links[10] = '| <a href="' . get_dashboard_url( get_current_user_id() ) . '" title="' . esc_attr__('Site Admin') . '">' . __('Site Admin') . '</a>'; |
| 156 | $links[10] = '| <a href="' . get_dashboard_url() . '" title="' . esc_attr__('Site Admin') . '">' . __('Site Admin') . '</a>'; |
157 | 157 | } |
158 | 158 | $links[15] = '| <a href="' . wp_logout_url() . '" title="' . esc_attr__('Log Out') . '">' . __('Log Out') . '</a>'; |
159 | 159 | |
diff --git wp-includes/link-template.php wp-includes/link-template.php
index 33f0a7d..a20e2bc 100644
|
|
function self_admin_url($path = '', $scheme = 'admin') { |
2290 | 2290 | * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. |
2291 | 2291 | * @return string Dashboard url link with optional path appended |
2292 | 2292 | */ |
2293 | | function get_dashboard_url( $user_id, $path = '', $scheme = 'admin' ) { |
2294 | | $user_id = (int) $user_id; |
| 2293 | function get_dashboard_url( $user_id = 0, $path = '', $scheme = 'admin' ) { |
| 2294 | $user_id = ( $user_id ) ? (int) $user_id : get_current_user_id(); |
2295 | 2295 | |
2296 | 2296 | $blogs = get_blogs_of_user( $user_id ); |
2297 | 2297 | if ( empty($blogs) ) { |
… |
… |
function get_dashboard_url( $user_id, $path = '', $scheme = 'admin' ) { |
2319 | 2319 | * |
2320 | 2320 | * @since 3.1.0 |
2321 | 2321 | * |
2322 | | * @param int $user User ID |
| 2322 | * @param int $user_id User ID |
2323 | 2323 | * @param string $scheme The scheme to use. Default is 'admin', which obeys force_ssl_admin() and is_ssl(). 'http' or 'https' can be passed to force those schemes. |
2324 | 2324 | * @return string Dashboard url link with optional path appended |
2325 | 2325 | */ |
2326 | | function get_edit_profile_url( $user, $scheme = 'admin' ) { |
2327 | | $user = (int) $user; |
| 2326 | function get_edit_profile_url( $user_id = 0, $scheme = 'admin' ) { |
| 2327 | $user_id = ( $user_id ) ? (int) $user_id : get_current_user_id(); |
2328 | 2328 | |
2329 | 2329 | if ( is_user_admin() ) |
2330 | 2330 | $url = user_admin_url( 'profile.php', $scheme ); |
2331 | 2331 | elseif ( is_network_admin() ) |
2332 | 2332 | $url = network_admin_url( 'profile.php', $scheme ); |
2333 | 2333 | else |
2334 | | $url = get_dashboard_url( $user, 'profile.php', $scheme ); |
| 2334 | $url = get_dashboard_url( $user_id, 'profile.php', $scheme ); |
2335 | 2335 | |
2336 | | return apply_filters( 'edit_profile_url', $url, $user, $scheme); |
| 2336 | return apply_filters( 'edit_profile_url', $url, $user_id, $scheme); |
2337 | 2337 | } |
2338 | 2338 | |
2339 | 2339 | /** |