Summery Summery
Handles the site name column output.
Syntax Syntax
Parameters Parameters
- $blog
-
(Required) Current site.
Source Source
File: wp-admin/includes/class-wp-ms-sites-list-table.php
global $mode; $blogname = untrailingslashit( $blog['domain'] . $blog['path'] ); ?> <strong> <a href="<?php echo esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ); ?>" class="edit"><?php echo $blogname; ?></a> <?php $this->site_states( $blog ); ?> </strong> <?php if ( 'list' !== $mode ) { switch_to_blog( $blog['blog_id'] ); echo '<p>'; printf( /* translators: 1: Site title, 2: Site tagline. */ __( '%1$s – %2$s' ), get_option( 'blogname' ), '<em>' . get_option( 'blogdescription' ) . '</em>' ); echo '</p>'; restore_current_blog(); } }
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.3.0 | Introduced. |