Changeset 16705 for trunk/wp-admin/themes.php
- Timestamp:
- 12/03/2010 10:13:17 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r16553 r16705 13 13 $wp_list_table->check_permissions(); 14 14 15 if ( current_user_can( 'switch_themes') && isset($_GET['action']) ) {15 if ( current_user_can( 'switch_themes' ) && isset($_GET['action'] ) ) { 16 16 if ( 'activate' == $_GET['action'] ) { 17 17 check_admin_referer('switch-theme_' . $_GET['template']); … … 19 19 wp_redirect( admin_url('themes.php?activated=true') ); 20 20 exit; 21 } else 21 } elseif ( 'delete' == $_GET['action'] ) { 22 22 check_admin_referer('delete-theme_' . $_GET['template']); 23 23 if ( !current_user_can('delete_themes') ) … … 35 35 36 36 if ( current_user_can( 'switch_themes' ) ) : 37 38 // Flush rewrite rules on activation once new theme is in place. 39 if ( isset( $_GET['activated'] ) && $_GET['activated'] == 'true' ) 40 flush_rewrite_rules(); 37 41 38 42 $help = '<p>' . __('Aside from the default theme included with your WordPress installation, themes are designed and developed by third parties.') . '</p>';
Note: See TracChangeset
for help on using the changeset viewer.