Make sure plugin menu icons are delivered via https if is_ssl(). Props DD32. fixes #8901
git-svn-id: http://svn.automattic.com/wordpress/trunk@11186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e30370d886
commit
7186506de4
|
@ -594,6 +594,8 @@ function add_menu_page( $page_title, $menu_title, $access_level, $file, $functio
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
$menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
|
$menu[] = array ( $menu_title, $access_level, $file, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url );
|
||||||
|
|
||||||
|
@ -634,6 +636,8 @@ function add_utility_page( $page_title, $menu_title, $access_level, $file, $func
|
||||||
|
|
||||||
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_utility_menu++;
|
$_wp_last_utility_menu++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue