WordPress.org

Make WordPress Core

Changeset 11186


Ignore:
Timestamp:
05/05/09 02:38:18 (6 years ago)
Author:
ryan
Message:

Make sure plugin menu icons are delivered via https if is_ssl(). Props DD32. fixes #8901

File:
1 edited

Legend:

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

    r11173 r11186  
    595595    if ( empty($icon_url) ) 
    596596        $icon_url = 'images/generic.png'; 
     597    elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') ) 
     598        $icon_url = 'https://' . substr($icon_url, 7);  
    597599 
    598600    $menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url ); 
     
    635637    if ( empty($icon_url) ) 
    636638        $icon_url = 'images/generic.png'; 
     639    elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') ) 
     640        $icon_url = 'https://' . substr($icon_url, 7);  
    637641 
    638642    $_wp_last_utility_menu++; 
Note: See TracChangeset for help on using the changeset viewer.