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:
parent
93b0be9b0c
commit
e67872f12e
|
@ -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++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue