Install Themes: Add link to the no-js theme previewer to the 'Preview' link. props ocean90, fixes #20694.
git-svn-id: http://core.svn.wordpress.org/trunk@20811 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
21384672a4
commit
cf81f30e05
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue