[wp-trac] [WordPress Trac] #56458: Multisite Theme Details
WordPress Trac
noreply at wordpress.org
Mon Aug 29 18:58:24 UTC 2022
#56458: Multisite Theme Details
------------------------------+--------------------------------------------
Reporter: hopetommola | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and | Version: 6.0.1
Sites |
Severity: normal | Resolution:
Keywords: | Focuses: ui, administration, multisite
------------------------------+--------------------------------------------
Comment (by hopetommola):
So ... I had an existing page template (below) that I figured I could
output the theme by the title ... both attempts at $theme returned the
PARENT theme, not the child, as described in get_bloginfo
{{{#!php
<?php
$bcount = get_blog_count();
// global $wpdb;
$blogs = $GLOBALS['wpdb']->get_results( "SELECT * FROM
$wpdb->blogs WHERE
spam = '0' AND deleted = '0' and archived = '0' and
public='1'", OBJECT );
if(!empty($blogs)){
foreach($blogs as $blog){
$details = get_blog_details($blog->blog_id);
// $theme =
basename(get_bloginfo('stylesheet_directory'));
$theme = get_bloginfo('stylesheet_url');
if($details != false){
$addr = $details->siteurl;
$name = $details->blogname;
$id = $details->blog_id;
$blogusers = get_users(
'blog_id='.$id.'&role=hope-admin' );
if (!empty($blogusers)) {
echo '<a
href="'.$addr.'">'.$name.'</a> —'.$theme.'<ul>';
foreach ( $blogusers as
$user ) {
echo '<li
class="emails">'.$user->user_email .'</li>';
}
echo '</ul>';
}
}
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56458#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list