Missing LeadIn Icon
-
Hey Andy,
It seems the latest versions of LeadIn are not displaying the SVG icon correctly.
/wp-content/plugins/leadin/images/leadin-svg-icon.svgThe resulting file is being downloaded as
application/octet-streamin Chrome and IE.I believe the issue is related to add_menu_page for svg.
It looks like it is expecting:'data:image/svg+xml;base64' . base64_encode(file_get_contents(LEADIN_PATH . '/images/leadin-svg-icon.svg'));In file
/wp-content/plugins/leadin/admin/leadin-admin.php$leadinIcon = ($wp_version < 3.8 && !is_plugin_active('mp6/mp6.php') ? LEADIN_PATH . '/images/leadin-icon-32x32.png' : 'data:image/svg+xml;base64,' . base64_encode(file_get_contents(LEADIN_PATH . '/images/leadin-svg-icon.svg'))); add_menu_page('Leadin', 'Leadin', $capability, 'leadin_stats', array($this, 'leadin_build_stats_page'), $leadinIcon, '25.100713');In file
/wp-content/plugins/leadin/inc/class-leadin.php<img src="data:image/svg+xml;base64,' . base64_encode(file_get_contents(LEADIN_PATH . '/images/leadin-svg-icon.svg')). '"
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Missing LeadIn Icon’ is closed to new replies.