X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/699231ae09f7057a4d0000cdf32e50a3df6a04ca..a9fa37e08fa731c7bd108a175c24876823bc071b:/wp-admin/ms-themes.php diff --git a/wp-admin/ms-themes.php b/wp-admin/ms-themes.php index e6fd9b57..1a03c666 100644 --- a/wp-admin/ms-themes.php +++ b/wp-admin/ms-themes.php @@ -7,93 +7,7 @@ * @since 3.0.0 */ -require_once( './admin.php' ); +require_once( dirname( __FILE__ ) . '/admin.php' ); -if ( ! current_user_can( 'manage_network_themes' ) ) - wp_die( __( 'You do not have permission to access this page.' ) ); - -$title = __( 'Network Themes' ); -$parent_file = 'ms-admin.php'; - -add_contextual_help($current_screen, - '

' . __('This screen enables and disables the inclusion of themes available to choose in the Appearance menu for each site. It does not activate or deactivate which theme a site is currently using.') . '

' . - '

' . __('If the network admin disables a theme that is in use, it can still remain selected on that site. If another theme is chosen, the disabled theme will not appear in the site’s Appearance > Themes screen.') . '

' . - '

' . __('Themes can be enabled on a site by site basis by the network admin on the Edit Site screen you go to via the Edit action link on the Sites screen.') . '

' . - '

' . __('For more information:') . '

' . - '

' . __('Documentation on Network Themes') . '

' . - '

' . __('Support Forums') . '

' -); - -require_once( './admin-header.php' ); - -if ( isset( $_GET['updated'] ) ) { - ?> -

- -
-
- -

-

-

-

- - - - - - - - - - - $theme ) { - $total_theme_count++; - $theme_key = esc_html( $theme['Stylesheet'] ); - $class = ( 'alt' == $class ) ? '' : 'alt'; - $class1 = $enabled = $disabled = ''; - $enabled = $disabled = false; - - if ( isset( $allowed_themes[$theme_key] ) == true ) { - $enabled = true; - $activated_themes_count++; - $class1 = 'active'; - } else { - $disabled = true; - } - ?> - - - - - - - - -
- -     - -
- -

-

-
- -

-

- -
- -

-
- - +wp_redirect( network_admin_url('themes.php') ); +exit;