Correct icon_url over SSL in add_object_page(), props johnbillion, fixes #10412

git-svn-id: http://svn.automattic.com/wordpress/trunk@11717 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-07-15 08:36:45 +00:00
parent 93b0be9b0c
commit e67872f12e
1 changed files with 2 additions and 0 deletions

View File

@ -620,6 +620,8 @@ function add_object_page( $page_title, $menu_title, $access_level, $file, $funct
if ( empty($icon_url) ) if ( empty($icon_url) )
$icon_url = 'images/generic.png'; $icon_url = 'images/generic.png';
elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') )
$icon_url = 'https://' . substr($icon_url, 7);
$_wp_last_object_menu++; $_wp_last_object_menu++;