WordPress.org

Make WordPress Core

Changeset 13896


Ignore:
Timestamp:
03/30/10 19:13:38 (5 years ago)
Author:
ryan
Message:

Use get_home_url() and get_admin_url(). Props andreasnrb. see #12736

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r13884 r13896  
    712712                    if ( $primary_blog == $blog->userblog_id ) 
    713713                        $found = true; 
    714                     ?><option value='<?php echo $blog->userblog_id ?>'<?php if ( $primary_blog == $blog->userblog_id ) echo ' selected="selected"' ?>>http://<?php echo $blog->domain.$blog->path ?></option><?php 
     714                    ?><option value='<?php echo $blog->userblog_id ?>'<?php if ( $primary_blog == $blog->userblog_id ) echo ' selected="selected"' ?>><?php echo get_home_url($blog->userblog_id) ?></option><?php 
    715715                } ?> 
    716716            </select> 
  • trunk/wp-admin/my-sites.php

    r12905 r13896  
    6969            echo "<td valign='top' style='$t; width:50%'>"; 
    7070            echo "<h3>{$user_blog->blogname}</h3>"; 
    71             echo "<p>" . apply_filters( "myblogs_blog_actions", "<a href='{$user_blog->siteurl}'>" . __( 'Visit' ) . "</a> | <a href='{$user_blog->siteurl}/wp-admin/'>" . __( 'Dashboard' ) . "</a>", $user_blog ) . "</p>"; 
     71            echo "<p>" . apply_filters( "myblogs_blog_actions", "<a href='" . get_home_url($user_blog->userblog_id) . "'>" . __( 'Visit' ) . "</a> | <a href='" . get_admin_url($user_blog->userblog_id) . "'>" . __( 'Dashboard' ) . "</a>", $user_blog ) . "</p>"; 
    7272            echo apply_filters( 'myblogs_options', '', $user_blog ); 
    7373            echo "</td>"; 
Note: See TracChangeset for help on using the changeset viewer.