WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/08/2012 07:32:42 AM (10 years ago)
Author:
nacin
Message:

In multisite, list broken themes on network/themes.php instead of on individual Manage Themes pages. see #20103.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/themes.php

    r20037 r20151  
    4141            $allowed_themes[ $_GET['theme'] ] = true;
    4242            update_site_option( 'allowedthemes', $allowed_themes );
    43             wp_redirect( network_admin_url( 'themes.php?enabled=1' ) );
     43            wp_safe_redirect( add_query_arg( 'enabled', 1, $referer ) );
    4444            exit;
    4545            break;
     
    245245</form>
    246246
    247 <?php $wp_list_table->views(); ?>
     247<?php
     248$wp_list_table->views();
     249
     250if ( 'broken' == $status )
     251    echo '<p class="clear">' . __('The following themes are installed but incomplete. Themes must have a stylesheet and a template.') . '</p>';
     252?>
    248253
    249254<form method="post" action="">
Note: See TracChangeset for help on using the changeset viewer.