From 0e484e1bc662ad5202897c1e2c4f5a1e5bf83da4 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 5 Mar 2009 18:32:09 +0000 Subject: [PATCH] Action links for themes page git-svn-id: http://svn.automattic.com/wordpress/trunk@10713 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index 247bd2ddc2..4fd1883edb 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -179,13 +179,20 @@ foreach ( $cols as $col => $theme_name ) { $thickbox_class = 'thickbox thickbox-preview'; $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); $activate_text = attribute_escape( sprintf( __('Activate "%s"'), $title ) ); + $actions = array(); + $actions[] = '' . __('Activate') . ''; + $actions[] = '' . __('Preview') . ''; + $actions = apply_filters('theme_action_links', $actions, $themes[$theme_name]); + + $actions = implode ( ' | ', $actions ); ?> -

+

+