Changeset 10715 for trunk/wp-admin/themes.php
- Timestamp:
- 03/05/2009 07:15:56 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/themes.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r10714 r10715 18 18 } else if ( 'delete' == $_GET['action'] ) { 19 19 check_admin_referer('delete-theme_' . $_GET['template']); 20 die('Not implemented'); 20 if ( !current_user_can('update_themes') ) 21 wp_die( __( 'Cheatin’ uh?' ) ); 22 delete_theme($_GET['template']); 23 wp_redirect('themes.php?deleted=true'); 24 exit; 21 25 } 22 26 } … … 35 39 <?php elseif ( isset($_GET['activated']) ) : ?> 36 40 <div id="message2" class="updated fade"><p><?php printf(__('New theme activated. <a href="%s">Visit site</a>'), get_bloginfo('url') . '/'); ?></p></div> 41 <?php elseif ( isset($_GET['deleted']) ) : ?> 42 <div id="message3" class="updated fade"><p><?php _e('Theme deleted.') ?></p></div> 37 43 <?php endif; ?> 38 44
Note: See TracChangeset
for help on using the changeset viewer.