Forward slash causes some problems – not needed
-
The forward slash in line 122 (pureHtml.php) before “icons”
add_menu_page(...."<strong>/icons</strong>/icon-16.png");)
causes a 404 for the image under some .htaccess security configurations.It results in a double forward slash in the link to the image i.e. DOMAIN/wp-content/plugins/pure-html//icons/icon-16.png
If the site or SERVER is configured to prevent double forward slash requests the image isn’t loaded and a 404 is logged.I’ve modded the code, removing the slash from this line and the link URL is correctly rendered as DOMAIN/wp-content/plugins/pure-html/icons/icon-16.png
The first slash in the code is not needed (at least on the sites I’ve made this change).
Possibly may not be needed in line 241 either (?>/icons/icon-32.jpg) but I haven’t seen an error logged so have left it in.
Great plugin by the way! Thanks for your efforts.
The topic ‘Forward slash causes some problems – not needed’ is closed to new replies.