WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/13/2013 03:22:48 AM (8 years ago)
Author:
SergeyBiryukov
Message:

Use get_current_site() instead of the $current_site global when possible.

props jeremyfelt.
fixes #25158.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r23563 r26120  
    134134
    135135    function display_rows() {
    136         global $current_site, $mode;
     136        global $mode;
    137137
    138138        $alt = '';
     
    224224                                    $path   = ( $val->path == '/' ) ? '' : $val->path;
    225225                                    echo '<span class="site-' . $val->site_id . '" >';
    226                                     echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . $current_site->domain, '', $val->domain . $path ) . '</a>';
     226                                    echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . get_current_site()->domain, '', $val->domain . $path ) . '</a>';
    227227                                    echo ' <small class="row-actions">';
    228228                                    $actions = array();
Note: See TracChangeset for help on using the changeset viewer.