Ticket #20694: 20694.patch
| File 20694.patch, 738 bytes (added by ocean90, 13 months ago) |
|---|
-
wp-admin/includes/class-wp-theme-install-list-table.php
220 220 break; 221 221 } 222 222 223 $actions[] = '<a class="install-theme-preview" href=" #" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>';223 $actions[] = '<a class="install-theme-preview" href="' . esc_url( $preview_url ) . '" title="' . esc_attr( sprintf( __( 'Preview %s' ), $name ) ) . '">' . __( 'Preview' ) . '</a>'; 224 224 225 225 $actions = apply_filters( 'theme_install_actions', $actions, $theme ); 226 226