WordPress.org

Make WordPress Core

Ticket #20694: 20694.patch

File 20694.patch, 738 bytes (added by ocean90, 6 years ago)
  • wp-admin/includes/class-wp-theme-install-list-table.php

     
    220220                                break;
    221221                }
    222222
    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>';
    224224
    225225                $actions = apply_filters( 'theme_install_actions', $actions, $theme );
    226226