Make WordPress Core


Ignore:
Timestamp:
10/21/2010 05:06:52 PM (15 years ago)
Author:
nacin
Message:

Network admin theme install. props PeteMall, fixes #15184.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-install.php

    r15578 r15898  
    1616$title = __('Install Themes');
    1717$parent_file = 'themes.php';
    18 $submenu_file = 'themes.php';
     18if ( !is_network_admin() )
     19    $submenu_file = 'themes.php';
    1920
    2021wp_enqueue_style( 'theme-install' );
     
    3637add_contextual_help($current_screen, $help);
    3738
    38 include('./admin-header.php');
     39include(ABSPATH . 'wp-admin/admin-header.php');
    3940?>
    4041<div class="wrap">
    41 <?php screen_icon(); ?>
     42<?php
     43screen_icon();
     44
     45if ( is_network_admin() ) : ?>
     46<h2><?php echo esc_html( $title ); ?></h2>
     47<?php else : ?>
    4248<h2><a href="themes.php" class="nav-tab"><?php echo esc_html_x('Manage Themes', 'theme'); ?></a><a href="theme-install.php" class="nav-tab nav-tab-active"><?php echo esc_html( $title ); ?></a></h2>
    4349
    44 <?php $wp_list_table->views(); ?>
     50<?php
     51endif;
     52
     53$wp_list_table->views(); ?>
    4554
    4655<br class="clear" />
     
    4857</div>
    4958<?php
    50 include('./admin-footer.php');
     59include(ABSPATH . 'wp-admin/admin-footer.php');
    5160
Note: See TracChangeset for help on using the changeset viewer.