WPIntell

Source evidence

WPML Simplemap Compatibility Issue – enqueue script path

Simple Map · support · 2015-02-28T21:03:00+00:00

complaintsentiment
highseverity
0.85relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 35 rows with source links

17.1% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

29 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
decisivedesign unresolved
Hi guys, On a WPML enabled website, it appears that the Simplemap enqueue script path breaks for multilingual. wp_enqueue_script( ‘simplemap-master-js’, get_home_url() . ‘?simplemap-master-js=1&smpid=’ . $post->ID, array( ‘jquery’ ) ); get_home_url() for mulitilingual will look like http://website.com?lang=%5Blanguage-prefix%5D so the enqueue script path looks like http://website.com?lang=%5Blanguage-prefix%5D ?simplemap-… which breaks Hard-coding the enqueue script and replacing get_home_url() with ‘ http://website.com’ ; works, but obviously is a poor/hacky solution. Please advise. https://wordpress.org/plugins/simple-map/

Comments

0 shown

No comments were stored for this source.