Make WordPress Core

Changeset 15760


Ignore:
Timestamp:
10/09/2010 05:25:09 AM (14 years ago)
Author:
dd32
Message:

Standardise on ->user->domain and ->user->account_domain being trailingslash'd. See #14772

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/admin-bar.php

    r15746 r15760  
    7979        return false;
    8080
    81     $wp_admin_bar->add_menu( array( 'id' => 'me', 'title' => get_avatar( $current_user->ID, 16 ), 'href' => $wp_admin_bar->user->account_domain . '/wp-admin/profile.php' ) );
     81    $wp_admin_bar->add_menu( array( 'id' => 'me', 'title' => get_avatar( $current_user->ID, 16 ), 'href' => $wp_admin_bar->user->account_domain . 'wp-admin/profile.php' ) );
    8282}
    8383add_action( 'wp_before_admin_bar_render', 'wp_admin_bar_me_separator', 10 );
  • trunk/wp-includes/admin-bar/admin-bar-class.php

    r15746 r15760  
    2020        } else {
    2121            $this->user->active_blog = $this->user->blogs[$blog_id];
    22             $this->user->domain = home_url();
    23             $this->user->account_domain = home_url();
     22            $this->user->domain = trailingslashit( home_url() );
     23            $this->user->account_domain = $this->user->domain;
    2424        }
    2525        $this->user->locale = get_locale();
Note: See TracChangeset for help on using the changeset viewer.