Ticket #18468: 18468.diff
File 18468.diff, 1.6 KB (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-upgrader.php
1354 1354 'activate' => '<a href="' . $activate_link . '" class="activatelink" title="' . esc_attr( sprintf( __('Activate “%s”'), $name ) ) . '">' . __('Activate') . '</a>' 1355 1355 ); 1356 1356 1357 if ( is_network_admin() && current_user_can( 'manage_network_themes' ) ) 1358 $install_actions['network_enable'] = '<a href="' . esc_url( wp_nonce_url( 'themes.php?action=enable&theme=' . $template, 'enable-theme_' . $template ) ) . '" title="' . esc_attr__( 'Enable this theme for all sites in this network' ) . '" target="_parent">' . __( 'Network Enable' ) . '</a>'; 1359 1357 1360 if ( $this->type == 'web' ) 1358 1361 $install_actions['themes_page'] = '<a href="' . self_admin_url('theme-install.php') . '" title="' . esc_attr__('Return to Theme Installer') . '" target="_parent">' . __('Return to Theme Installer') . '</a>'; 1359 1362 else -
wp-admin/network/themes.php
40 40 check_admin_referer('enable-theme_' . $_GET['theme']); 41 41 $allowed_themes[ $_GET['theme'] ] = true; 42 42 update_site_option( 'allowedthemes', $allowed_themes ); 43 wp_redirect( add_query_arg( 'enabled', '1', $referer) );43 wp_redirect( network_admin_url( 'themes.php?enabled=1' ) ); 44 44 exit; 45 45 break; 46 46 case 'disable':