Going back to imagemapper v.1.2.2 brought back the admin menu for “Image map areas”
However, the shortcode was still not processing – seems to be realated to the quotation marks being modified (note grumo64’s id= ? above)
I got it to work by editing two lines to just remove the quotation marks (and then removed them from the post as well).
So my post now has:
[imagemap id=19]
The lines I changed are in function ‘imgmap_replace_shortcode’, near line 867 in /wp-content/plugins/imagemapper/imagemapper.php
/* Insert image map code in posts */
function imgmap_replace_shortcode($content) {
global $imagemaps;
preg_match_all('/\[imagemap id=(.*?)\]/', $content, $maps);
foreach($maps[1] as $map) {
if(!isset($imagemaps[$map]))
$imagemaps[$map] = 0;
$imagemaps[$map]++;
$content = preg_replace('/\[imagemap id='.$map.'\]/', get_imgmap_frontend_image($map, $map.'-'.$imagemaps[$map]), $content, 1);
}
return $content;
}
The two lines changed are the two ‘preg_’ statements which were originally:
preg_match_all('/\[imagemap id=\"(.*?)\"\]/', $content, $maps);
...
$content = preg_replace('/\[imagemap id=\"'.$map.'\"\]/'...