Make WordPress Core


Ignore:
Timestamp:
02/20/2010 09:09:49 PM (15 years ago)
Author:
nacin
Message:

Use admin_url() for images in wp-admin, to allow for filtering. Props mdawaffe, see #12300

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r13233 r13256  
    822822
    823823    if ( empty($icon_url) ) {
    824         $icon_url = 'images/generic.png';
     824        $icon_url = esc_url( admin_url( 'images/generic.png' ) );
    825825    } elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') ) {
    826826        $icon_url = 'https://' . substr($icon_url, 7);
Note: See TracChangeset for help on using the changeset viewer.