WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/06/2008 07:39:11 AM (12 years ago)
Author:
ryan
Message:

More use of site_url(), admin_url(), and site_url(). Force login and admin links to be https if FORCE_SSL_LOGIN. see #7001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/widgets.php

    r7968 r8058  
    10741074    $url = clean_url(strip_tags($url));
    10751075    if ( file_exists(dirname(__FILE__) . '/rss.png') )
    1076         $icon = str_replace(ABSPATH, get_option('siteurl').'/', dirname(__FILE__)) . '/rss.png';
     1076        $icon = str_replace(ABSPATH, site_url() . '/', dirname(__FILE__)) . '/rss.png';
    10771077    else
    1078         $icon = get_option('siteurl').'/wp-includes/images/rss.png';
     1078        $icon = includes_url('images/rss.png');
    10791079    $title = "<a class='rsswidget' href='$url' title='" . attribute_escape(__('Syndicate this content')) ."'><img style='background:orange;color:white;border:none;' width='14' height='14' src='$icon' alt='RSS' /></a> <a class='rsswidget' href='$link' title='$desc'>$title</a>";
    10801080
Note: See TracChangeset for help on using the changeset viewer.