WordPress.org

Make WordPress Core

Ticket #9315: themes-preview.patch

File themes-preview.patch, 851 bytes (added by gregg.lind, 9 years ago)

simple patch to change 'home' to 'siteurl'

  • wp-admin/themes.php

     
    180180       $author = $themes[$theme_name]['Author'];
    181181       $screenshot = $themes[$theme_name]['Screenshot'];
    182182       $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
    183        $preview_link = clean_url( get_option('home') . '/');
     183       $preview_link = clean_url( get_option('siteurl') . '/');
    184184       $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true', 'width' => 600, 'height' => 400 ), $preview_link ) );
    185185       $preview_text = attribute_escape( sprintf( __('Preview of "%s"'), $title ) );
    186186       $tags = $themes[$theme_name]['Tags'];