From 73f10a4468860e92c53ad2d4e7306e075b8b8930 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 22 Sep 2010 17:23:38 +0000 Subject: [PATCH] Options list for current theme. see #14936 git-svn-id: https://develop.svn.wordpress.org/trunk@15646 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 d43b98bd40..818e1928d9 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); ?>

+ +