From baef50b41c4d3c519f3907ba2d37a67a9ed6cfc3 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 22 Sep 2010 17:23:38 +0000 Subject: [PATCH] Options list for current theme. see #14936 git-svn-id: http://svn.automattic.com/wordpress/trunk@15646 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index d43b98bd4..818e1928d 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -81,14 +81,41 @@ if ( is_multisite() && current_user_can('edit_themes') ) { /* translators: 1: theme title, 2: theme version, 3: theme author */ printf(__('%1$s %2$s by %3$s'), $ct->title, $ct->version, $ct->author) ; ?>

description; ?>

-parent_theme ) { ?> -

%2$s. The stylesheet files are located in %3$s. %4$s uses templates from %5$s. Changes made to the templates will affect both themes.'), $ct->title, str_replace( WP_CONTENT_DIR, '', $ct->template_dir ), str_replace( WP_CONTENT_DIR, '', $ct->stylesheet_dir ), $ct->title, $ct->parent_theme); ?>

- -

%2$s.'), $ct->title, str_replace( WP_CONTENT_DIR, '', $ct->template_dir ), str_replace( WP_CONTENT_DIR, '', $ct->stylesheet_dir ) ); ?>

- -tags ) : ?> -

tags); ?>

- +
+ + {$item[0]}"; + else + $options[] = "{$item[0]}"; + } else if ( current_user_can($item[1]) ) { + if ( file_exists(ABSPATH . 'wp-admin/' . $item[2]) ) { + $options[] = "{$item[0]}"; + } else { + $options[] = "{$item[0]}"; + } + } + } + } + echo implode ( ' | ', $options ); + + if ( $ct->tags ) : ?> +

tags); ?>

+ +