diff -r f507feede89a -r 09a1c134465b web/wp-admin/themes.php --- a/web/wp-admin/themes.php Wed Dec 19 12:35:13 2012 -0800 +++ b/web/wp-admin/themes.php Wed Dec 19 17:46:52 2012 -0800 @@ -20,7 +20,7 @@ $theme = wp_get_theme( $_GET['stylesheet'] ); if ( ! $theme->exists() || ! $theme->is_allowed() ) wp_die( __( 'Cheatin’ uh?' ) ); - switch_theme( $theme->get_template(), $theme->get_stylesheet() ); + switch_theme( $theme->get_stylesheet() ); wp_redirect( admin_url('themes.php?activated=true') ); exit; } elseif ( 'delete' == $_GET['action'] ) { @@ -108,10 +108,8 @@

-

Visit site.' ), home_url( '/' ) ); ?>

- -

widgets settings screen to configure them.'), admin_url( 'widgets.php' ) ); ?>

+

Visit site' ), home_url( '/' ) ); ?>

+

Visit site' ), home_url( '/' ) ); ?>

@@ -147,6 +145,11 @@
  • display('Version') ); ?>
  • display('Description'); ?>

    + parent() ) { + printf( '

    ' . __( 'This child theme requires its parent theme, %2$s.' ) . '

    ', + __( 'http://codex.wordpress.org/Child_Themes' ), + $ct->parent()->display( 'Name' ) ); + } ?> @@ -169,7 +172,10 @@ else $options[] = "{$item[0]}"; } else if ( current_user_can($item[1]) ) { - if ( file_exists(ABSPATH . 'wp-admin/' . $item[2]) ) { + $menu_file = $item[2]; + if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) + $menu_file = substr( $menu_file, 0, $pos ); + if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { $options[] = "{$item[0]}"; } else { $options[] = "{$item[0]}"; @@ -193,9 +199,11 @@
  • +