Changeset 12752 for trunk/wp-admin/themes.php
- Timestamp:
- 01/18/2010 08:34:48 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r12743 r12752 17 17 $ct = current_theme_info(); 18 18 $allowed_themes = apply_filters("allowed_themes", get_site_allowed_themes() ); 19 if ( $allowed_themes == false )19 if ( $allowed_themes == false ) 20 20 $allowed_themes = array(); 21 21 22 22 $blog_allowed_themes = wpmu_get_blog_allowedthemes(); 23 if ( is_array( $blog_allowed_themes ) )23 if ( is_array( $blog_allowed_themes ) ) 24 24 $allowed_themes = array_merge( $allowed_themes, $blog_allowed_themes ); 25 if ( $blog_id != 1 )25 if ( $blog_id != 1 ) 26 26 unset( $allowed_themes[ "h3" ] ); 27 27 28 if ( isset( $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] ) == false )28 if ( isset( $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] ) == false ) 29 29 $allowed_themes[ wp_specialchars( $ct->stylesheet ) ] = true; 30 30 31 31 reset( $themes ); 32 foreach ( $themes as $key => $theme ) {33 if ( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) {32 foreach ( $themes as $key => $theme ) { 33 if ( isset( $allowed_themes[ wp_specialchars( $theme[ 'Stylesheet' ] ) ] ) == false ) { 34 34 unset( $themes[ $key ] ); 35 35 } … … 68 68 69 69 require_once('admin-header.php'); 70 if ( is_multisite() && is_super_admin() ) {70 if ( is_multisite() && is_super_admin() ) { 71 71 ?><div id="message0" class="updated fade"><p><?php _e('Administrator: new themes must be activated in the <a href="wpmu-themes.php">Themes Admin</a> page before they appear here.'); ?></p></div><?php 72 72 }
Note: See TracChangeset
for help on using the changeset viewer.