From fc2230e12a43c1756293054f71d1fb954dc9fcfd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 25 Feb 2014 00:00:48 +0000 Subject: [PATCH] Fix theme preview URL for themes loaded via AJAX on Install Themes screen. props ocean90. fixes #27128. git-svn-id: https://develop.svn.wordpress.org/trunk@27247 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-theme-install-list-table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-theme-install-list-table.php b/src/wp-admin/includes/class-wp-theme-install-list-table.php index 50e597839c..af06783e7f 100644 --- a/src/wp-admin/includes/class-wp-theme-install-list-table.php +++ b/src/wp-admin/includes/class-wp-theme-install-list-table.php @@ -192,7 +192,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table { $preview_url = add_query_arg( array( 'tab' => 'theme-information', 'theme' => $theme->slug, - ) ); + ), self_admin_url( 'theme-install.php' ) ); $actions = array();