Install Themes: Add link to the no-js theme previewer to the 'Preview' link. props ocean90, fixes #20694.

git-svn-id: https://develop.svn.wordpress.org/trunk@20811 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-05-16 21:08:10 +00:00
parent 9f550982a1
commit 3ae49bd759
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
break;
}
$actions[] = '<a class="install-theme-preview" href="#" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
$actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';
$actions = apply_filters( 'theme_install_actions', $actions, $theme );