Changeset 11109 for trunk/wp-admin/themes.php
- Timestamp:
- 04/28/2009 05:58:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r11008 r11109 189 189 $preview_link = clean_url( get_option('home') . '/'); 190 190 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); 191 $preview_text = attr ibute_escape( sprintf( __('Preview of "%s"'), $title ) );191 $preview_text = attr( sprintf( __('Preview of "%s"'), $title ) ); 192 192 $tags = $themes[$theme_name]['Tags']; 193 193 $thickbox_class = 'thickbox thickbox-preview'; 194 194 $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); 195 $activate_text = attr ibute_escape( sprintf( __('Activate "%s"'), $title ) );195 $activate_text = attr( sprintf( __('Activate "%s"'), $title ) ); 196 196 $actions = array(); 197 197 $actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __('Activate') . '</a>'; 198 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr ibute_escape(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>';198 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>'; 199 199 if ( current_user_can('update_themes') ) 200 200 $actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url("themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet) . '" onclick="' . "if ( confirm('" . js_escape(sprintf( __("You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;" . '">' . __('Delete') . '</a>';
Note: See TracChangeset
for help on using the changeset viewer.