Make WordPress Core

Ticket #18301: 18301.2.patch

File 18301.2.patch, 747 bytes (added by betzster, 12 years ago)

Network admins can see all themes

  • wp-admin/includes/class-wp-themes-list-table.php

    class WP_Themes_List_Table extends WP_List_Table { 
    2525        }
    2626
    2727        function prepare_items() {
    28                 $themes = wp_get_themes( array( 'allowed' => true ) );
     28                if ( is_multisite() && is_super_admin() )
     29                        $themes = wp_get_themes();
     30                else
     31                        $themes = wp_get_themes( array( 'allowed' => true ) );
    2932
    3033                if ( ! empty( $_REQUEST['s'] ) )
    3134                        $this->search_terms = array_unique( array_filter( array_map( 'trim', explode( ',', strtolower( stripslashes( $_REQUEST['s'] ) ) ) ) ) );