WordPress.org

Make WordPress Core

Changeset 20811


Ignore:
Timestamp:
05/16/12 21:08:10 (3 years ago)
Author:
koopersmith
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-theme-install-list-table.php

    r20791 r20811  
    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 ); 
Note: See TracChangeset for help on using the changeset viewer.