Make WordPress Core


Ignore:
Timestamp:
05/02/2010 10:53:59 PM (15 years ago)
Author:
ryan
Message:

Escape links by default. Props alexkingorg. see #13051

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r14287 r14347  
    213213    $theme_root = $themes[$theme_name]['Theme Root'];
    214214    $theme_root_uri = $themes[$theme_name]['Theme Root URI'];
    215     $preview_link = esc_url(get_option('home') . '/');
     215    $preview_link = trailingslashit( home_url() );
    216216    if ( is_ssl() )
    217217        $preview_link = str_replace( 'http://', 'https://', $preview_link );
Note: See TracChangeset for help on using the changeset viewer.